Skip to content

feat(app-shell): the command palette finds a nav entry by its old name and shows its group path - #39163

Merged
objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/issue-39055-palette-old-names
Dec 2, 2026
Merged

objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/issue-39055-palette-old-names

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #39055
Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 管理员在控制台按 ⌘K 搜设置页时,输入旧名或别名(如「岗位持有人」「部门」)也能找到新页面,结果旁注明「原名 …」,且每条导航结果前显示所在分组,如「人员与组织 › 业务单元」。
  • 属于「设置页改名与分组整理」专题:页面改名后,老用户按旧名仍能找到页面。
  • 出错时最坏是某个旧名搜不到或分组前缀显示不对,不影响打开页面和任何数据;整个改动可直接撤回。
  • 无。

What changes

A navigation entry's keywords (declared by the previous card of this epic) get their reader, under the seat's ruled add rule (seat ruling 7347779833 (a), after ADR-0149 D1: a locale's keywords ADD to the entry's source-language list).

  • translateApp serves the merged list (packages/spec). Each navigation node is served with its own keywords plus the reader's locale's bundle apps.APP.navigation.ID.keywords (the first locale along the chain that lists any), source words first, each once. A node whose bundle lists none is served as before. The merge rule lives in a new internal module, i18n-nav-keywords.ts (mergeNavKeywords), because i18n-resolver.ts is over 1,000 lines; it is not re-exported from any entry point. The console therefore reads one list and resolves no bundle itself.
  • The ⌘K palette matches on keywords (ui/packages/app-shell). Every navigation entry kind the palette offers (object, dashboard, page, report, component, url) is matched on its label and machine name first and, only when those miss, on its keywords (paletteNavKeywords.ts#paletteKeywordHit). A keyword hit shows that keyword after the entry: 「原名 X」 in zh, "Formerly X" in en, through a new console.commandPalette.formerName string in all eleven console locales. A keyword hit is an entry found, so the "create as" rule is unchanged: such a query offers no create row.
  • A group's label and keywords find the entries under it (patch round 2). A group is not itself a palette entry, but a query matching its label or its keywords (a renamed group's old name) lists the visible entries under it, at any depth, each with its group path; when only the group's keyword matched, each row names that keyword (「原名 X」). The entry's own terms and keywords come first (paletteNavKeywords.ts#paletteNavEntryHit). An action or doc entry accepts keywords but nothing reads them yet (Navigation keywords on action and doc entries are accepted but nothing reads them (#39050) #39168); the describe in app.zod.ts, its jsdoc, the liveness row and content/docs/ui/apps.mdx name the read kinds.
  • Every navigation result shows its group path. appReportIndex.ts gains flattenNavigationWithGroups (each entry with the groups above it, outermost first); flattenNavigation is now that walk without the paths, so the report index reads the same navigation as before. The palette row (PaletteNavEntryText.tsx) draws the path muted before the label: 「人员与组织 › 业务单元」; a top-level entry shows its label alone.
  • Liveness. navigation.children.keywords in packages/spec/liveness/app.json flips planned to live, citing translateApp, mergeNavKeywords, CommandPalette and paletteKeywordHit; the [PLANNED — not yet read] marker leaves the keywords describe in app.zod.ts (and its jsdoc's "Planned, not yet read" section is rewritten); content/docs/references/ui/app.mdx and liveness/state-counts/app.md are regenerated (check:generated --fix, the two it proved stale). content/docs/ui/apps.mdx loses its "planned" wording for the key, which this change made false.

Read first, by risk:

  1. packages/spec/src/system/i18n-resolver.ts, the translateApp hunk: the keywords leg reads catalogs.unchanged for every node (see Acceptance notes on ADR-0146 D2).
  2. ui/packages/app-shell/src/chrome/CommandPalette.tsx, the matchesNav / navKeywordHits hunk and the five render sites.
  3. ui/packages/app-shell/src/views/appReportIndex.ts, flattenNavigationWithGroups: the report index still calls flattenNavigation.

Two-minute verification: pnpm --dir ui exec vitest run packages/app-shell/src/chrome/CommandPalette.navKeywords-39055.test.tsx (after pnpm --filter @objectstack/spec build): 15 passed, including 岗位持有人 finding 「人员与组织 › 岗位成员」 with 「原名 岗位持有人」.

Tests

New pins, run on fixture apps only (Setup's own navigation data and locale packs are #39057's):

  • packages/spec/src/system/i18n-resolver.nav-keywords.test.ts (6): zh-CN adds the locale's words after the source words, each once; an entry with no source words gets the locale's; en serves no zh-only word and keeps the source words; the first locale along the chain is the one added; a group node takes keywords the same way; the input is not mutated.
  • ui/packages/app-shell/src/chrome/CommandPalette.navKeywords-39055.test.tsx (15), the fixture app put through the real translateApp per locale: 岗位持有人 finds 岗位成员 with 「原名 岗位持有人」; 部门 finds 业务单元; a label hit names no keyword; a zh keyword matches in zh; a source keyword matches in zh and in en; a zh-only keyword does not match in en; every navigation result shows its group path (nested groups outermost first, top-level alone, zh paths in zh); a keyword hit offers no "create as" row, and words that find nothing still do; a group keyword 旧组名 lists the group's two visible entries with 「原名 旧组名」 in zh and "Formerly 旧组名" in en, the group's label lists them with no hint, an entry hidden from the member (requiredPermissions) is not listed, and a group-keyword hit offers no create row.
  • Updated, because every grouped result now carries its path: CommandPalette.setupPages-39038.test.tsx (expected texts read 「分组 › 页面」 through an at() helper), CommandPalette.navMatch-11812.test.tsx (expected texts gain their group; the file now loads @object-ui/plugin-detail at module scope, which check:test-source-alias asks of an edited test that reaches the preview pane), packages/spec/src/ui/app-nav-keywords.test.ts (the key is now live and its describe carries no planned marker).
Ablations (each mutation landed through scripts/ablation-replace.mjs, restored, git diff HEAD empty after)
  • A1, translateApp keywords leg deleted (anchor if (keywords) next.keywords = keywords;, blob 712b7ade to eb9b2298): i18n-resolver.nav-keywords.test.ts 4 failed / 2 passed.
  • A2, replace rule instead of add (mergeNavKeywords returns the locale list alone, blob dc922afa to f85b3cd0): 1 failed / 5 passed (the source-first merge pin).
  • A3, the palette never tries a keyword (paletteKeywordHit, blob f30c14ed to ed24d032): CommandPalette.navKeywords-39055.test.tsx 5 failed / 6 passed (both old-name hits, zh keyword, source keyword in zh and en, the create-as pin).
  • A4, the flatten keeps no groups (appReportIndex.ts, blob 6bebaa18 to 49fb5d16): 8 failed / 3 passed (every path assertion).
  • A5 (patch round 2), the group leg dropped (paletteNavEntryHit walks no group, blob ef384e9e to 33c19d87): 5 failed / 10 passed (all four group pins, and the m path pin that lists the group "More"'s entry).

The spec pins import ./i18n-resolver from source; the palette pins import CommandPalette from source, so A3 and A4 needed no build.

Local runs (tree 798fea9 for tests; gates as noted)
  • pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 over i18n-resolver.nav-keywords, i18n-resolver, i18n-resolver.nav-label-identity, app-nav-keywords: 4 files, 598 passed.
  • pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/chrome/ packages/app-shell/src/views/__tests__/ packages/i18n/: 256 files, 3065 passed, 13 skipped.
  • Earlier, a wider set (also src/__tests__/, navEntryDataSource-13029, AppHeader.searchTriggerNeedsPalette-11912, openPathObjectReaders-12811, StudioPaletteGroups.surfaceScope-36900, adr0054-ratchet, dialogViewportGutterCensus-12603): 288 files, 3621 passed, 13 skipped.
  • pnpm --dir ui exec vitest run scripts/: 172 files, 5159 passed.
  • Typecheck: @object-ui/app-shell type-check (both projects, tests included) exit 0; @object-ui/i18n type-check and @objectstack/spec typecheck exit 0.
  • pnpm --filter @objectstack/spec check:generated after the merge of origin/main b706ec6: all 14 artifacts up to date.
  • Derived gates (dispatch-gates.mjs --commands, 119): reconciled with --ran as 116 run with exit 0, 3 NOT MEASURED: check-plugin-teardown-shape.mjs --self-test (its positive control is pinned to a commit this shallow clone cannot reach; same exit 3 on an untouched main checkout), check:skill-examples and check:dual-build-cjs-loads (PREREQUISITE NOT MET: no client-react dist, and no dist for 35 packages, since no full build ran here). Most of the 119 ran before the origin/main merge; the spec gates, ratchets and changeset gates were rerun on 798fea9, the docs gates on f1dcf4f.
  • check:new-line-citations: 0 new. check-platform-checklist.mjs --changed-from origin/main: 0 anchors lost.

Acceptance notes

  • File surface. Beyond the claim's list, this diff adds: two new modules under ui/packages/app-shell/src/chrome/ (paletteNavKeywords.ts, PaletteNavEntryText.tsx) and one under packages/spec/src/system/ (i18n-nav-keywords.ts), because CommandPalette.tsx and i18n-resolver.ts are over 1,000 lines and a new concern goes to a sibling module; the eleven console locale files under ui/packages/i18n/src/locales/ for the 「原名」 string; packages/spec/src/ui/app-nav-keywords.test.ts, which pinned the planned grade this card flips; the two regenerated artifacts; and the two stale sentences in content/docs/ui/apps.mdx. In app.zod.ts only the marker, the false "until it ships, nothing reads the key" clause and the jsdoc's "Planned" section changed.
  • One widening, no new spec export. mergeNavKeywords is not re-exported from any @objectstack/spec entry, and flattenNavigationWithGroups and the palette helpers are not in @object-ui/app-shell's index; no spec accept set changes. The one widening is the new console.commandPalette.formerName key in the eleven published @object-ui/i18n locale packs, hence Clause-②: yes (widening). Metadata-protocol: none: no key, value or default a metadata author writes changed; the key gains its reader with the add rule the seat ruled.
  • ADR-0146 D2 reading. Bundle keywords are further words for the entry, not translations of the source list, so the keywords leg always reads the unchanged catalog (the override pair's, then the deployment's, locale by locale) and never drops the base's words when an override changes its own list; the override's own list is always the source half. Stated in i18n-nav-keywords.ts.
  • English text of the hint. 「原名 X」 is the card's wording; en is the literal "Formerly X". For an alias that is a synonym rather than an old name (部门 for 业务单元) the label still reads 「原名」, as the card asks.
  • Translation node text (patch round 1). The bundle node's keywords describe and jsdoc in system/translation.zod.ts and the apps row note on liveness/translation.json now say the key is read by translateApp and that a locale's list adds to the source list; text only, no schema change, and the node's label stays required (A translation bundle can give a navigation entry its keywords without pinning its label (#39050) #39146).
  • Left for other cards. @object-ui/types' NavigationEntryItem interface declares no keywords though its zod mirror does, so a TypeScript literal typed as a nav item refuses the key at compile time (loud, not silent); the palette reads it off the flattened entry (carrier: Setup's and Studio's navigation editors let an admin edit an entry's search keywords (#39050) #39147, the editor input card, which will need the type).
  • Writers should be unaffected (read, not measured). By their own headers, the design-mode menu save (designModeMenuSave.ts) and Studio's nav rail (servedNavText.ts) write from the stored (/layers) document and use the served one for display only, so a served merged list is not written back as source words. No test here exercises that path.

Verification

Draft until the seat's review. Under 3,000 changed lines (849 + / 123 - against origin/main, head 841d83d). Ships in the same release as #39057.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF

…'s locale, the add rule

A locale's bundle keywords add to the entry's source-language list, never
replace it (seat ruling 7347779833 (a), after ADR-0149 D1).

Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF
Co-authored-by: Claude <noreply@anthropic.com>
…s and shows its group path

Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF
Co-authored-by: Claude <noreply@anthropic.com>
…te, under the add rule

Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:system protocol:ui 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

5 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 3 changed file(s) yielded no anchor (packages/spec/liveness/app.json, packages/spec/liveness/state-counts/app.md, packages/spec/liveness/translation.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/liveness/app.json, packages/spec/liveness/state-counts/app.md, packages/spec/liveness/translation.json) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • 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 — 183 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 3a39dfc8641c15dc9230e0232f657e5afd37ef00 — the merge of head 841d83d0c4732f8522186ed17c0b2305e62ebfd8 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 3a39dfc8641c15dc9230e0232f657e5afd37ef00 && git checkout 3a39dfc8641c15dc9230e0232f657e5afd37ef00
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b98173cea88f0cdc9fbe1a80a6bf1214396c1472 841d83d0c4732f8522186ed17c0b2305e62ebfd8 && git checkout -B drift-repro b98173cea88f0cdc9fbe1a80a6bf1214396c1472 && git merge --no-ff 841d83d0c4732f8522186ed17c0b2305e62ebfd8

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.

… say they are read and add to the source list; Clause-② is yes (widening)

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_01WGufzhGA3zoCFquQgku4pm

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head f1dcf4f · 2026-12-02T16:53Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

2026-12-02T16:50Z · Final green head for L1: f1dcf4f5 (every check run success or expected skip: 63 success, 11 skipped; mergeable clean). Zone osa-setup asks osa-L1-a for the L1 read and the Clause-②: yes declaration review at TIER_DEFAULT.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 658b369 · 2026-12-02T18:21Z

@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: 658b36912eb43420d852f3b90626a003b9d0cc1f
Local-runs: none
Scope: packages/spec/src/system/i18n-nav-keywords.ts, packages/spec/src/system/i18n-resolver.ts, packages/spec/src/system/translation.zod.ts, packages/spec/src/ui/app.zod.ts + packages/spec/liveness/app.json, packages/spec/liveness/translation.json, ui/packages/app-shell/src/chrome/CommandPalette.tsx, ui/packages/app-shell/src/chrome/paletteNavKeywords.ts, ui/packages/app-shell/src/chrome/PaletteNavEntryText.tsx, ui/packages/app-shell/src/views/appReportIndex.ts

Full review of the head on the schema face, PR #39163 for card #39055. Read: the card body and all eight comments (hand-over 7347620600, seat ruling 7347779833, claim 7347895753, amendments 7351926312 and 7353029018, dev reports 7351784443 and 7354224938), the PR body as it stood at 2026-12-02T18:19Z, the 30-file list, the net diff against main (merge base b706ec6), and the check-runs on the head. The rest of the diff (five test files, eleven locale packs, the changeset prose, the regenerated content/docs/references/ui/app.mdx and liveness/state-counts/app.md, content/docs/ui/apps.mdx) is the lane seat's ACCEPT at TIER_DEFAULT.

Check-runs on the head, read 18:26Z: 64 success, 13 skipped, 0 failure, 1 in progress. The one in progress is a second Check Changeset run started 18:22Z, with the PR-body edit; the first Check Changeset run on this head (17:14Z) is success, and the second PR-body guards run (18:22Z) is success. Spec property liveness, Governed Surface Queue Guard, Lint & Repo Gates, Test Core (12/12), Test UI (16/16), both type checks, Build Docs and Live E2E UI are success. This record reads the changeset gate off the 17:14Z run and off the two texts themselves (②); a red result of the 18:22Z run would reopen ② only.

① Derived judgments

  • No accept set changes in @objectstack/spec. Right. app.zod.ts and translation.zod.ts change jsdoc and .describe() text only: navKeywordsSchema(), the bundle node's z.array(...).max(20).optional() and the node's required label are byte-identical to main. The describe strings feed generated artifacts; Lint & Repo Gates (check:generated) is green.
  • No new spec export. Right. i18n-nav-keywords.ts is imported by i18n-resolver.ts alone and by no index; packages/spec/api-surface is not in the file list. mergeNavKeywords is internal as its header says.
  • translateApp's served shape widens: a node with an id may now carry a keywords list the stored node does not have. Right, and declared. Every /meta app read takes it (translateMetaItem to translateMetadataDocument to translateApp, per the ledger row). A node whose bundle lists nothing is returned with its own key untouched (mergeNavKeywords answers undefined), and no bundle at all returns the document as before (!catalogs.unchanged). The input is not mutated (next is a copy, the merged list a new array).
  • The add rule is what ruling 7347779833 (a) says. Right. Source words first, then the first non-empty bundle list along localeChain(opts), each word once through a Set. A source word is served in every locale; a locale's words only where the chain reaches that locale.
  • One published widening outside spec: console.commandPalette.formerName in all eleven @object-ui/i18n packs. Right. All eleven added lines carry the {{keyword}} slot the component interpolates; the component also passes a defaultValue.
  • @object-ui/app-shell: no index change. flattenNavigationWithGroups, NavigationLeaf, paletteKeywordHit, navEntryKeywords and PaletteNavEntryText are module exports only; flattenNavigation keeps its signature and result (the same walk, mapped to .item), so the report index reads the same list.
  • Liveness: navigation.children.keywords goes planned to live, the app counts go 53/7 to 54/6. Right in direction; the evidence sentence overstates the reader, see S1.
  • Not derived by the diff, named so nobody assumes it: translateApp walks doc.navigation only. An entry that sits elsewhere in an app document gets neither a translated label nor a locale's keywords, exactly as its label behaves on main. No change, no finding.

② Semver level

.changeset/39055-palette-nav-keywords.md in the tree: @objectstack/spec, @object-ui/app-shell, @object-ui/i18n, all patch; Clause-②: yes (widening); Metadata-protocol: none. The PR body as read at 18:19Z carries the same two lines, Clause-②: yes (widening) and Metadata-protocol: none, so body and changeset agree and both agree with amendment 7351926312. Round 1's M1 (the no line) is not present on this head in either text.

  • Clause-②: yes (widening) is right: one new key in a published package's packs, nothing removed or tightened.
  • Metadata-protocol: none is right: no key, accepted value, requirement or default an author writes changes. The bundle key's replace-or-add question was open on main ("not settled here") and nothing read the key, so the add rule is a first meaning, not a changed one. Under AGENTS.md's level rule none takes patch, and a non-protocol widening ships patch. The three packages named are the three the diff moves.
  • No BREAKING banner is owed and none is claimed; the changeset's "No action needed for existing metadata" is true.

③ Boundary flags

④ Design judgment

packages/spec/src/system/i18n-nav-keywords.ts — holds against ruling 7347779833 (a) and its one caller. Tried to break it: a bundle node that is null, a string, or carries a non-array keywords is skipped; an empty list or a list of empty strings does not stop the chain walk; a duplicate between source and locale is served once, source position kept (the fixture's Position Holders); a second pass over an already served node adds nothing new. The header's ADR-0146 D2 paragraph matches the call site: the leg reads catalogs.unchanged for every node whatever valueOverridesPackagedBase says of its label, and labelCatalogs builds that catalog as the pair's data over the deployment's, locale by locale. That reading is sound for words that are not translations of the source list. One sentence is looser than the code: "the same rung order a translated label takes" is true of the order, but a label and a keyword list can answer from different rungs (a zh-CN node with a label and no keywords lets a later locale of the chain supply the words). That is what "the first locale along the chain that lists any" says elsewhere, and it is the useful behaviour; no finding.

packages/spec/src/system/i18n-resolver.ts — the leg sits inside the typeof node.id === 'string' branch, so an id-less node is untouched, as its label is. localeChain(opts) gives the requested locale alone when it is the default locale or no chain is declared, so nothing is invented; pickData applies the same tag resolution the label lookup uses. The jsdoc section added to translateApp says what the code does. Holds.

packages/spec/src/system/translation.zod.ts — text only. The jsdoc and describe now state the add rule, the first list along the chain, and that the palette matches the served list; each sentence agrees with mergeNavKeywords and the call site. The retained sentence "per-locale on purpose, which is where it departs from a dataset member's synonyms" still holds beside the add rule: source words match everywhere, a locale's own only there. Holds.

packages/spec/src/ui/app.zod.ts — text only. "Search only: never shown as the entry's text, never a route, never a gate" still holds: the palette shows a matched keyword as a hint after the label, never as the label. "The command palette is its reader" and the jsdoc's "matches a query against them" hold for the entry kinds the palette offers and for no other, which is S1.

S1 (should-fix) — the key is graded live on every arm of the shared nav base, but three of the nine arms that accept it have no reader, and the ledger says otherwise. keywords is declared on BaseNavItemSchema, so group, action and doc entries accept it. CommandPalette.tsx matches six kinds only: navOfType for object, dashboard, page, report, and addressItems for component and url. flattenNavigationWithGroups opens a group into its children and keeps the group only as a path label, so a group's own keywords find neither the group nor anything under it; action and doc entries are not offered at all. translateApp nevertheless merges and serves keywords on a group (pinned by "a group node takes keywords the same way"), to no reader. The liveness/app.json evidence for navigation.children.keywords reads "matches every navigation entry on its label, machine name and keywords", which is false for those three arms; the PR body itself says "every navigation entry kind the palette offers (object, dashboard, page, report, component, url)". With authorWarn off, an author who writes keywords on a group or an action entry gets silence. Either make the ledger evidence and the app.zod.ts describe name the kinds that are read and say the other three are accepted and unread (with a carrier card for their reader or their removal), or give them a reader. The card's acceptance does not need the second.

packages/spec/liveness/app.json, packages/spec/liveness/translation.json — apart from S1's sentence, each claim checks against the tree: translateApp and mergeNavKeywords are where the row says, paletteKeywordHit tries a keyword only after the entry's own terms miss, the apps row now cites the merge and the ruling, and evidenceScope moving to in-repo is right now that both readers are in this repository.

ui/packages/app-shell/src/chrome/paletteNavKeywords.ts, CommandPalette.tsx — agree with the contract sentence by sentence. Own terms first; the first matching keyword in served order is the one named, so a source word wins over a locale word; an empty query matches by the terms rule and names no keyword. A keyword hit returns found, so it enters the same result arrays the create-as rule reads, as #39038 requires. cmdk's own filter is off (shouldFilter false), so the palette's match is the only one. navKeywordHits is rebuilt per render and written from inside the filter callbacks; a component entry dropped afterwards for resolving to # leaves a stale map entry that no row reads. Harmless.

ui/packages/app-shell/src/chrome/PaletteNavEntryText.tsx, ui/packages/app-shell/src/views/appReportIndex.ts — the path is the labels of the groups above the entry, outermost first, taken after navEntriesShownToMember has pruned what the member may not see, so no hidden group's label leaks into a path; a top-level entry shows its label alone. The acceptance line "every navigation result shows its group path" holds for the six kinds the palette offers.

N1 (nit) — the served list can exceed the authored cap. Twenty source words plus twenty locale words serve up to forty, while navKeywordsSchema and objectui's mirror (ui/packages/types/src/zod/app.zod.ts) cap a list at twenty. No reader of the served app re-parses it, and the writer read above starts from the stored document, so nothing refuses the served shape today. Accepted deviation; if a served-document parse is ever added, it must not reuse the authoring cap.

N2 (nit) — two stale statements outside the diff. The mirror's comment at ui/packages/types/src/zod/app.zod.ts still says "nothing in objectui reads it yet", false once this lands; and NavigationEntryItem in ui/packages/types/src/app.ts lacks keywords, so the palette reads it through a cast. Both belong to carrier #39147; not in this diff, not reviewed.

No must-fix. One should-fix, S1, open on this head; it earns a delta review of its fix.

Implemented-by: claude/issue-39055-palette-old-names
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 review — REWORK on 658b36912eb43420d852f3b90626a003b9d0cc1f (one should-fix owes a fix head)

The contract L2 at CONTRACT_REVIEW_TIER on this head, the schema face and a full review, is the record dispatched just before this one (request fw-20261202T182740Z-d68328). It reads PASS with S1 open, and owes a delta of the fix.

My round 1 on f1dcf4f5 was a declaration review FAIL (M1, S1) and an L1 REWORK. Both were lost on the write relay and not re-posted, because the head has since moved. On this head both are closed: the changeset and the PR body now say Clause-②: yes (widening), and the translation node's describe, jsdoc and liveness/translation.json now say read and follow the add rule. CI is 64 success and 0 failed. A second Check Changeset run, started by the body edit, was still running when the L2 read it.

S1 (should-fix), which I concur with. navigation.children.keywords is graded live, and the evidence says the palette "matches every navigation entry". CommandPalette.tsx matches six kinds: object, dashboard, page, report, component and url. group, action and doc entries accept the key, and translateApp serves merged keywords on a group (pinned), but nothing reads them. A group appears only as a path label. With authorWarn off, an author who writes keywords there gets no notice. This matters next door: #39161 writes keywords on Setup's groups for their retired names. Fix: either give groups (and action / doc) a reader, or name the six read kinds in the ledger evidence and the app.zod.ts describe, state that the other three are accepted but unread, and name the carrier card.

Carried to the seat (nits): N1, the served list can hold up to 40 words, and nothing re-parses it. N2, the objectui mirror comment still says "nothing in objectui reads it yet", and NavigationEntryItem lacks keywords; both belong to #39147.

Everything else verified in my round-1 read still holds on this head: the add rule in translateApp, the palette's keyword fallback and group path, and the i18n key in all 11 locales.

…s under it in the palette; name the read kinds

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:48Z · Patch-round-2 green head for the contract L2 delta and L1 delta: 841d83d0 (74 check runs: 63 success, 11 skipped, 0 failure).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 841d83d · 2026-12-02T19:50Z

@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: 841d83d0c4732f8522186ed17c0b2305e62ebfd8
Local-runs: none
Scope: packages/spec/src/system/i18n-nav-keywords.ts, packages/spec/src/system/i18n-resolver.ts, packages/spec/src/system/translation.zod.ts, packages/spec/src/ui/app.zod.ts + packages/spec/liveness/app.json, packages/spec/liveness/translation.json, ui/packages/app-shell/src/chrome/CommandPalette.tsx, ui/packages/app-shell/src/chrome/paletteNavKeywords.ts, ui/packages/app-shell/src/chrome/PaletteNavEntryText.tsx, ui/packages/app-shell/src/views/appReportIndex.ts

Delta review of PR #39163 for card #39055: the five commits from 658b3691, the head of the full record, to this head (8 files, 164 additions, 57 deletions). Read: the delta diff, dev report 7356708549 on the card, carrier card #39168, the PR body as it stood at 2026-12-02T19:50Z, and the check-runs on this head. Of the hits files only app.zod.ts moved; i18n-nav-keywords.ts, i18n-resolver.ts and translation.zod.ts are byte-identical to the reviewed head and the full record stands for them. The rest of the delta (the test file, the changeset prose, content/docs/ui/apps.mdx, the regenerated content/docs/references/ui/app.mdx) is the lane seat's ACCEPT at TIER_DEFAULT.

Check-runs on the head, read 19:51Z: 65 success, 13 skipped, 0 failure, none in progress. Both Check Changeset runs (19:13Z, and 19:48Z after the body edit) and both PR-body guards runs are success; Spec property liveness, Governed Surface Queue Guard, Lint & Repo Gates, Test Core, Test UI, both type checks and Build Docs are success.

① Derived judgments

  • No accept set changes. Right. The app.zod.ts hunk adds one jsdoc paragraph and rewrites the last sentence of the keywords describe; navKeywordsSchema() and the shared base are untouched. The describe feeds the regenerated reference page, which moved with it; check:generated is green in Lint & Repo Gates.
  • No new published surface. Right. paletteNavEntryHit and PaletteNavGroupTerms are module exports of paletteNavKeywords.ts, not of the package index. No locale pack moved in the delta; the group hint reuses console.commandPalette.formerName.
  • The palette's result set widens: a query that matches a group's label or keywords now lists the visible entries under that group. Right, and stated. On main, and on the head of the full record, a group's label found nothing by itself. The changeset, the PR body (the patch round 2 bullet), apps.mdx and the module header all say it; the existing path pin for the query m was updated to list the entry the group "More" now finds, which is the change made visible rather than hidden.
  • Liveness: the row stays live, its evidence now names the kinds read. Right; see ④.

② Semver level

The changeset in the tree: @objectstack/spec, @object-ui/app-shell, @object-ui/i18n, all patch; Clause-②: yes (widening); Metadata-protocol: none. The PR body read at 19:50Z carries the same two lines. Both still apply: the delta adds no published key, removes and tightens nothing, and changes nothing an author can write, so none takes patch. The one added changeset sentence about groups, and the sentence that action and doc entries accept keywords with nothing reading them yet, are both true in the tree.

③ Boundary flags

④ Design judgment

S1: closed

packages/spec/src/ui/app.zod.ts — every sentence about the read kinds is true in the tree. The six kinds are the ones navOfType and addressItems match in CommandPalette.tsx; a group's keywords reach paletteNavEntryHit through navGroups; action and doc entries are offered nowhere in the palette. The jsdoc cites #39168 and the describe carries no issue id.

packages/spec/liveness/app.json — the evidence names the six kinds, the group leg and both helper functions, each at the path it gives; the note says action and doc accept the key and nothing reads it, and why the grade is still live. A live grade with two unread arms stated in the row and carried by a card is an honest row.

ui/packages/app-shell/src/chrome/paletteNavKeywords.ts, CommandPalette.tsx — the group leg, tried against each question put to this round:

  • Can a group hit list an entry the member's gates prune, or one under a pruned group? No. navGroups is built from flattenNavigationWithGroups(navEntriesShownToMember(...)), and navEntriesShownToMember filters at every depth before recursing, so a refused entry is gone and a refused group is gone with its subtree. The group leg only decides whether an entry already in that list matches; it adds none.
  • Does the hint appear only when a group keyword alone matched? Yes. The entry's own terms and keywords are tried first and returned as they were. Otherwise the loop returns with no keyword as soon as any group's label matches, and keeps walking after a keyword hit so a later group's label still wins; only when no label answered is the first group keyword named.
  • Does the create-as rule hold? Yes. A group hit puts the entry into the same arrays queryFindsEntry reads, so no "create as" row is offered. Queries that match a group label now also count as found; that follows from the rule as Console command palette finds no Setup page: searching 邮件, 时区 or 审计 returns only nonsensical quick-create rows #39038 states it ("the words ask for that then") and from the group leg being stated.
  • Does a group label match change what showed before, intended and stated? Yes to all three, see ①.

An empty query still matches by the entry's own terms and names nothing. A group with no entries of the six kinds under it finds nothing, which is the truthful answer.

N3 (nit) — a group-keyword hit reads as the entry's own former name. The row shows 「运维 › 作业」 with 「原名 旧组名」: the alias is the group's old name, but the hint sits after the entry and says "Formerly". PaletteNavEntryText.tsx's jsdoc, unchanged, still says the hint is "one of its search aliases". The changeset states the behaviour. A wording matter for a follow-up; no effect on what is found.

N4 (nit) — group hits are not ranked after direct hits. A query that matches a group label lists every entry under it in navigation order, interleaved with entries matched by their own name. On a large Setup group a short query returns the whole group. Found entries are all correct; ordering is a follow-up.

N1 and N2 of the full record stand as recorded there, unchanged by the delta.

Tests. CommandPalette.navKeywords-39055.test.tsx gains four pins on a fixture group with a keyword and a child the member is denied: the keyword lists the two visible children with the hint in zh and in en, the label lists them with no hint, the denied child is absent in every case, and a group-keyword hit offers no create row. With the updated m path pin these are the five the dev reports red under ablation A5; the count matches what the tree holds. The gate fixture is real: can, cannot and hasCapabilities now refuse denied_39055, so the absence is the gate's doing.

No must-fix, no should-fix.

Implemented-by: claude/issue-39055-palette-old-names
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 841d83d0c4732f8522186ed17c0b2305e62ebfd8

The contract-tier delta record posted just before this one is PASS on this head. It closes S1 and leaves no must-fix or should-fix, which answers my REWORK 7354804688. Check-runs: 65 success, 13 expected-skip, 0 failed, 0 pending. The second Check Changeset run, triggered by the body edit, succeeded.

Verified on the tree (five commits on 658b3691):

  • The group reader. In paletteNavKeywords.ts#paletteNavEntryHit, a query that matches a group's label or keywords lists that group's entries. The groups come from navGroups, which is built from the tree after navEntriesShownToMember, so an entry the member's gates prune, or one under a pruned group, never shows. The 「原名」 hint appears only when a group keyword alone matched: the entry's own terms come first, and a group label wins over a group keyword. A group hit counts as found, so fix(app-shell): the command palette offers create-as only for the page's own object, when the query finds nothing else #39116's create-as rule holds.
  • Read kinds named. The app.zod.ts describe and jsdoc, the liveness/app.json row, apps.mdx and the changeset all name the read kinds (the six, plus group). They state that action and doc accept the key unread and cite carrier Navigation keywords on action and doc entries are accepted but nothing reads them (#39050) #39168, which is open and scoped to those two. The grade stays live, and the schema is unchanged.
  • Behaviour change, stated. A group label used to find nothing and now lists the group's entries. The changeset, the body and apps.mdx say so, and the docs(protocol): show a real PluginHealthReport under Custom Health Checks #11812 m pin is updated.
  • Tests. Four new pins plus the updated m pin match the dev's ablation (group leg dropped → 5 red). The denied-permission fixture is real.
  • Declarations. Clause-②: yes (widening), Metadata-protocol: none and patch ×3 hold in both the changeset and the body.

This also settles #39161's group aliases: they are now matched.

Carried to the seat (nits, follow-ups):

Not governed. The zone lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-12-02T19:54Z · zone osa-setup

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 protocol:system protocol:ui size/l 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.

Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050)

2 participants