Skip to content

feat(spec): a navigation item declares search aliases, keywords, per locale (#39052) - #39125

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-0cmqba
Dec 2, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-0cmqba

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #39052

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — the key is planned (nothing reads it until the command palette #39055 ships), so no skill teaches it yet; the reference is content/docs/ui/apps.mdx (updated here)

Branch: claude/project-thread-0cmqba, restarted from main at cef9a80 after #39092 (PR 1 of this thread) merged.

维护者速读

  • 导航项新增可选键 keywords: string[](spec 加宽),用于搜索别名,例如改名后的旧名;separator 不接受。
  • 翻译包导航节点 apps.<app>.navigation.<id>.keywords 按语言给出别名,和 label 同一个 id;未知键在两处仍然拒绝。
  • 键名用 keywords 而不是 aliases(AI 契约里 aliases 是退役键改名表);aliases / synonyms 会提示“是否想写 keywords”。
  • 目前没有读取方:liveness 台账记为 planned,消费方是命令面板卡 Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055,不对作者告警;贡献 group 的示例改为新分组 group_integrations_dev。

What changes

  • packages/spec/src/ui/app.zod.ts
    • keywords on the shared nav base, beside label, so the nine branches that spread it carry it. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, at most 20 per entry, refused rather than trimmed (the dataset synonym's rule, ADR-0149 D1). The describe starts [PLANNED — not yet read].
    • synonyms, searchTerms and searchKeywords point at keywords on every branch; aliases does too, except on a group, which answers it with a prescription naming both keys it can mean there (keywords, or renamedFrom for retired group ids).
    • The separator's prescription list gains keywords, so a separator refuses it with "not a separator key", not a rename.
    • The navigation contribution's group describe and @example name group_integrations_dev (ruling D1) instead of the retired group_integrations.
  • packages/spec/src/system/translation.zod.ts: the navigation node accepts keywords beside label, under the same value rule, with the four alias spellings. The node still owes its label. The shape is shared, so both translation doors (file bundle and registered translation item) take it.
  • Liveness: liveness/app.json → navigation.children.keywords is planned, consumer Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055 (read points CommandPalette.tsx and appReportIndex.ts#flattenNavigation), authorWarn off. liveness/translation.json's apps row (not drilled below the record value) gets a sentence pointing at that row.
  • Regenerated by check:generated --fix: content/docs/references/ui/app.mdx, packages/spec/docs/references/**, authorable-surface/ui.json, liveness/state-counts/app.md.
  • Docs: content/docs/ui/apps.mdx adds keywords to the common-properties table and one sentence on the per-locale bundle entry.
  • objectui (Claim amendments on Navigation items accept search aliases, per locale (Setup redesign #39050) #39052):
    • ui/packages/types/src/zod/app.zod.ts declares keywords on its nav mirror, so objectui validate keeps the key instead of stripping it (navigation-spec-parity.test.ts holds the doc arm to the spec's keys).
    • ui/packages/app-shell/src/views/metadata-admin/inspectors/nav-target.ts adds keywords to NAV_ENTRY_BASE_KEYS, so a change of entry type keeps it; the 11790 test fixture carries a value for it.
  • Checklist anchor (amendment 7344320317): docs/qa/platform-checklist/areas/dashboards.json cited setup-nav.contributions.ts#nav_system_overview, which feat(setup): ten Setup group anchors; a nav group's renamedFrom keeps retired ids working (#39053) #39092 moved into setup.app.ts; repointed, with the two steps' prose. check:platform-checklist in full mode was red on main since feat(setup): ten Setup group anchors; a nav group's renamedFrom keeps retired ids working (#39053) #39092 (the PR lane runs it scoped).
  • Changeset: @objectstack/spec minor, @object-ui/types and @object-ui/app-shell patch.

Tests

packages/spec/src/ui/app-nav-keywords.test.ts (new, 38 cases):

  • every one of the nine branches accepts and keeps keywords, and still parses without it;
  • the real door (AppSchema), nested under a group, and a navigation contribution item;
  • an empty string, a non-string and a bare string are refused;
  • a separator refuses it with its prescription;
  • an unknown key is still refused, and the four alias spellings point at keywords on every branch;
  • the translation nav node, at both doors, read back through the inferred TranslationData type; the node still owes label, an unknown key is still refused, and an empty alias is refused;
  • the ledger row is planned, names Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055, and has no authorWarn;
  • the group describe names group_integrations_dev, not group_integrations.

Acceptance notes

Verification

  • packages/spec vitest run src/ui src/system src/shared: 321 files, 10808 tests, green (new file 41).
  • ui packages/types/ plus packages/app-shell/.../inspectors/: 13847 pass, 1 skipped.
  • check:test-typecheck clean; check:generated green after --fix; check:doc-authoring green.
  • node scripts/pm/dispatch-gates.mjs --ran on head 44e94e4: 123 derived, 123 run, 0 not-measured, all exit 0, in one full run after pnpm build.
  • Reviews: L2 at CONTRACT_REVIEW_TIER 7344994866 (PASS, S1/S2 should-fix) and delta 7345414177 (PASS, S1/S2 closed); L1 7345119048 (REWORK) and delta 7346207294 (ACCEPT).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb

…locale (#39052)

A navigation item (every variant but separator) accepts an optional
`keywords: string[]`, and a translation bundle's navigation node accepts
the same key beside `label`, so a renamed Setup page is still found by
its old name. Unknown keys stay refused in both places; `aliases` and
`synonyms` are pointed at `keywords`. The key is `planned` on the
liveness ledger, read by the command palette card #39055. The
contribution `group` example names `group_integrations_dev`.

Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m 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
objectui's NavigationItemObject strips unknown keys, so the spec's new
nav base key `keywords` would have been dropped by `objectui validate`,
and the doc arm's key set no longer matched the spec's
(navigation-spec-parity). One declared key; no objectui reader yet.
Claim amendment 7342983899.

Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 17 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/spec/authorable-surface/ui.json, packages/spec/docs/references/api/metadata.md, packages/spec/docs/references/api/package-api.md, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

26 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 f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395.

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

What this run could not see
  • 8 changed file(s) yielded no anchor (packages/spec/authorable-surface/ui.json, packages/spec/docs/references/api/metadata.md, packages/spec/docs/references/api/package-api.md, …) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: requiredPermissions (literal, 43 pages)
  • 4 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 254 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 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 f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 68efb84f69770c609031217ab21d3e37f68b573c — the merge of head 44e94e43c8287f81c4c2898e9de03881e4478170 into base f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395, 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 68efb84f69770c609031217ab21d3e37f68b573c && git checkout 68efb84f69770c609031217ab21d3e37f68b573c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395 44e94e43c8287f81c4c2898e9de03881e4478170 && git checkout -B drift-repro f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395 && git merge --no-ff 44e94e43c8287f81c4c2898e9de03881e4478170

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

⚠️ 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 f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

check:doc-authoring refuses an internal issue id in customer-facing
`.describe()` prose; the palette reference moves to the docblocks.

Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb
Co-authored-by: Claude <noreply@anthropic.com>
…39052)

`keywords` joins NAV_ENTRY_BASE_KEYS, the describing keys a retype keeps
and the nav editors count as declared on every non-separator member, and
the 11790 test fixture carries a value for it. Claim amendments on #39052.

Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb
Co-authored-by: Claude <noreply@anthropic.com>
#39092 moved nav_system_overview from setup-nav.contributions.ts into
setup.app.ts, pinned above the groups, so the dashboards checklist
anchor read ABSENT SYMBOL in check:platform-checklist's full mode.
Repointed, with the two steps' prose. Claim amendment 7344320317.

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

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8735f0409d0230cbab1ba0810cfa333f6b233e0e
Local-runs: none
Scope: 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/types/src/zod/app.zod.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/nav-target.ts

Inputs read: card #39052 (body, the first touch, Claim 7339233623 and its four amendments 7342983899, 7343994902, 7344032990, 7344320317), the epic's ruling comment 7336749035 on #39050 (D1 to D4), PR #39125 (body, 18-file list, net diff against main), and the check-runs on the head. Code outside the diff was read, not reviewed: packages/spec/src/shared/strict-object.ts, alias-probe.ts, packages/spec/src/ui/dataset.zod.ts, packages/spec/src/system/i18n-resolver.ts, the two deepMerge copies, packages/lint/src/i18n-walk.ts, packages/spec/liveness/README.md, ADR-0149, and the first consumer's card #39055.

Check-runs on the head were read three times, the last two at 12:09Z and 12:11Z; the state at close is the last bullet of ①.

① Derived judgments

  • Nav item accept-set, widened: right. keywords (an optional array of non-empty strings) sits on BaseNavItemSchema, so the nine branches that spread BaseNavItemSchema.shape accept it (object, dashboard, page, url, report, action, component, doc, group). NavigationItem and NavigationItemInput derive from the branch schemas, so both types carry it with no hand edit. The contribution door (NavigationContributionSchema.items) reuses NavigationItemSchema, so a contributed item accepts it too. Optional, no default: nothing materialises on existing metadata.
  • Separator, unchanged refusal with a better answer: right. The separator spreads nothing, so keywords stays refused there; adding it to SEPARATOR_NAV_ITEM_GUIDANCE gives the prescription instead of a near-miss rename.
  • Unknown keys stay refused: right. Both surfaces remain strictObject. The four new alias spellings (aliases, synonyms, searchTerms, searchKeywords) are keyed in the lowercase, separator-stripped form aliasProbe looks up, and their target is a key each non-separator branch declares. One of the four is wrong on one branch: S1.
  • Translation nav node accept-set, widened: right. apps.APP.navigation.ID accepts keywords beside label. The shape is appTranslationDataShape, shared by the file bundle and the registered translation item, so both doors widen together. label stays required on the node (N2). Both deepMerge copies replace an array with the later bundle's, which is the stated rule for non-object leaves, so a second bundle for the same id replaces the list rather than index-merging it.
  • Value rule, looser than the stated intent and than the repo's precedent: S2.
  • Public surface: right. authorable-surface/ui.json gains exactly nine ui/*NavItem:keywords rows and no separator row; the generated reference pages show keywords?: string[] on the nav item and on the translation node. The group describe and @example on NavigationContributionSchema now name group_integrations_dev, one of D1's ten ids; a describe-only change.
  • Liveness: right. navigation.children.keywords is planned with no authorWarn, which the ledger README permits for a planned row; the describe carries the [PLANNED — not yet read] marker the ledger reads. The grade is truthful, not a silencer: a reader is named (Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055, Blocked-by this card) and its two read points exist in the tree (ui/packages/app-shell/src/chrome/CommandPalette.tsx, ui/packages/app-shell/src/views/appReportIndex.ts#flattenNavigation). The translation half has no row of its own: it sits below the apps row's walk boundary and so reads as live while nothing reads it. The note on that row says so and points at the planned row; accepted as stated.
  • objectui mirror: right. NavigationItemObject declares the key, so the flat arm stops stripping it; the doc arm is built from the keys the spec's doc arm shares with NavigationItemObject, so it follows; the separator refusal reads its allowed keys from the spec's separator arm, so a separator keywords is refused there as on the platform. NAV_ENTRY_BASE_KEYS gains the key, so a change of entry type keeps it and a change to separator drops it.
  • Gate verdicts. On the head at close (2026-12-02T12:11Z): 77 check-runs, 63 success, 13 skipped, none failed, and 1 still in progress, Test Core (5/12). Completed and green among the ones this diff leans on: Spec property liveness, Check Changeset (both runs), Lint & Repo Gates, Lint · repo & tooling gates, Lint · docs & code guards, Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check UI, all sixteen Test UI shards, Build Core, Build Docs, Governed Surface Queue Guard, PR-body guards. The one in-progress shard is not a verdict; this record does not stand in for it.

② Semver level

Right. The declarations are Clause-②: yes (widening) and Metadata-protocol: added, on the PR body and in the changeset body, and they match the diff: one new authorable key on two published schemas, nothing removed or tightened. added takes at least minor on a package the diff moves; the changeset gives @objectstack/spec minor. @object-ui/types and @object-ui/app-shell take patch for a mirror declaration and a hand-list entry, which is within the rule (one moved package at minor or above). No BREAKING banner and no ADR-0087 disposition are owed by a widening. Check Changeset concluded success on both of its runs on this head.

③ Boundary flags

  • Dev flag, "Open, outside the Claim surface: objectui's mirror must declare the key; this PR stays draft until it lands" (PR body). Answered. Amendment 7342983899 added the mirror to the claim, 7343994902 and 7344032990 added the nav-target hand list and its fixture line, and the tree at this head carries all three. The PR body's sentence, and its Verification line about one failing parity test, describe an earlier head; the body was not the thing judged. The PR is still a draft.
  • Dev flag, "Translation semantics chosen here: a locale's keywords replace the item's source-language ones" (PR body, and published in both describes). Escalated, not graded. The card asks that a bundle "can give them per locale" and Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055's acceptance reads "Aliases follow the current locale"; replace satisfies both, and so would a union. No ruling chose between them. The same file argues the opposite principle for the same kind of value: DATASET_MEMBER_SYNONYMS_NOT_TRANSLATED (ADR-0149 D1) says match input is compared "in every language at once" and that a per-locale key "would invite a reader to match only the active locale's list". Under replace, a zh-CN user who types an entry's old English name finds nothing through the alias once the zh-CN bundle gives any keywords. The card's per-locale requirement stands either way; what is open is replace against add. It needs the maintainer's word, or an explicit line on Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055, before the reader lands; a change after that is a semantic protocol change. Not a finding on this head because nothing reads the key yet.
  • Claim amendment 7344320317, docs/qa/platform-checklist/areas/dashboards.json. Answered: three repointed lines repairing feat(setup): ten Setup group anchors; a nav group's renamedFrom keeps retired ids working (#39053) #39092's move of nav_system_overview; unrelated to the two hits files and part of the lane seat's remainder.
  • D4 content (部门, 组织架构, 事业部 for 业务单元). Answered: deferred to the platform-items card Platform-owned Setup items sit in their new groups under the new names; every old name stays searchable (#39050) #39057 by the Claim's premise; nothing in this diff authors a keyword on a shipped app.
  • open_questions. None filed on the card or the PR beyond the two dev flags above.
  • SQL push-down. Not applicable: the diff adds no query, no id materialisation and no in-app join.

④ Design judgment

packages/spec/src/ui/app.zod.ts, against ruling D1, the card, and its first consumer #39055.

Holds: the key's name and the reason for it (the aliases option name is the rename map throughout packages/spec/src/ai/*.zod.ts, and dataset.zod.ts already points keywords at synonyms, so the two tables now point at each other consistently); the placement on the shared base; the separator prescription; the jsdoc's account of the reader, which matches #39055's "原名 X" and "resolved for the current locale"; the D1 example id.

S1 (should-fix) — aliases: 'keywords' is the wrong answer on the group branch. NAV_ITEM_ALIASES is spread into every non-separator variant, group included. On a group the word has two meanings, both from this epic: search words (this card), and the retired ids a renamed group still answers to, which ruling D1 itself calls "the old→new alias map" and the epic calls "old ids are kept only as aliases". The second is renamedFrom (#39053), declared on the same branch. An author, or an AI author told to "keep the old group id as an alias", who writes aliases: ['group_people_org'] on a group is told to write keywords; keywords: ['group_people_org'] then parses clean, and the old id resolves nothing: contributions aimed at it fall to the app's top level. The redirect lands on a key that accepts the value and means something else, which is the silent shape these tables exist to prevent. The in-code comment ("aliases is the card's own word for the key") is true of #39052 and not of D1. Fix: on group, answer aliases with a prose target that names both keys (keywords for search words, renamedFrom for retired ids), the way NAV_EXPANDED_ALIASES_ELSEWHERE handles a word whose answer depends on the branch; keep the bare rename on the other eight. synonyms, searchTerms and searchKeywords are unambiguous and stay.

S2 (should-fix) — the value rule admits what its own sentence refuses. The changeset and the tests say "an empty string is refused", and z.string().min(1) does that, but ' ', a string with leading or trailing whitespace, and one holding a line break all parse, with no bound on length or count. The repo's precedent for the same kind of value, cited by name in this diff's own alias comment, is DatasetMemberSynonymsSchema (ADR-0149 D1): trimmed, non-empty, no line break, at most 60 characters, at most 20 per member, refused rather than trimmed. Tightening after release is a narrowed change with a BREAKING banner; tightening now is free, because nothing authors or reads the key. Fix: either adopt the trimmed and non-blank rule on both schemas (the caps are the dev's call), or state in the jsdoc that whitespace and size are deliberately left to the reader and why. The same applies to the translation node's keywords.

packages/spec/src/system/translation.zod.ts, against the card and #39055.

Holds: one shape, both doors; the alias spellings mirror the nav item's; the describe carries the planned marker.

N1 (nit) — the node still requires label, and translateApp stamps a node's label onto the entry whether or not the entry authored one. So an entry that inherits its label from its target (the documented default in content/docs/ui/apps.mdx) cannot be given per-locale keywords without also pinning a label for that locale, or writing label: '', which lookupNavLabel skips. Setup's own entries all carry labelled nodes, so the first consumer is unaffected. Relaxing label to optional later is a widening (the apps.APP.label precedent sits a few lines above). Left as a follow-up for #39055 or its own card.

N2 (nit) — the jsdoc gives the replace rule and does not say that it departs from DATASET_MEMBER_SYNONYMS_NOT_TRANSLATED forty lines above, where synonyms on the nav node now redirects to a per-locale key while synonyms on a dataset member is answered "not translated". A sentence naming the difference belongs with whatever ③'s escalation settles.

Implementing files.

  • packages/spec/liveness/app.json: the row agrees with the schema (status, consumer, no authorWarn, the flip instruction). N3 (nit) — its note says "objectui's nav mirror (ui/packages/types/src/zod/app.zod.ts) does not declare the key yet, so the console parse drops it". This head declares it, in this diff. The sentence was true one commit earlier; the row is rewritten when it flips to live.
  • packages/spec/liveness/translation.json: agrees; see ①.
  • ui/packages/types/src/zod/app.zod.ts: agrees on the key set. N4 (nit) — it declares z.array(z.string()), so objectui validate passes keywords: [''], which the platform's save door refuses. The comment on label just above calls the empty-label rule "the one stated divergence"; this is a second, unstated one, in the looser direction, and in line with the mirror's other value checks (id is a bare string there too). It should follow whatever S2 settles.
  • ui/packages/app-shell/src/views/metadata-admin/inspectors/nav-target.ts: agrees. The key describes the entry and not its target, so a retype keeps it; the separator list is untouched, so a retype to separator drops it, as the spec's separator requires.

Outside ④: tests, the changeset text, generated output, content/docs, and docs/qa are the lane seat's ACCEPT at TIER_DEFAULT.

Open on this head: S1, S2. No must-fix. A delta review of the fix is owed; N1 to N4 can be left as accepted deviations or ride the same fix commit.

Implemented-by: claude/project-thread-0cmqba
Reviewed-by: session_01WGufzfhZDUp9rF94Nz3frb

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review — REWORK on 8735f0409d0230cbab1ba0810cfa333f6b233e0e (two should-fix owe a fix head)

Check-runs: 65 success, 13 expected-skip, 0 failed, 0 pending. mergeable_state is clean. Not governed, 423 lines. The contract L2 at CONTRACT_REVIEW_TIER is record 7344994866 on this head. It reads PASS, but S1 and S2 are open should-fix, and it owes a delta of the fix. I concur with both:

  • S1. On the group branch, aliases → keywords redirects an author who means a retired group id to a key that accepts the value and resolves nothing, because renamedFrom (Setup navigation has ten new group anchors; a contribution to a retired group id still lands in the right group (#39050) #39053) is that key. The answer on group should name both keys, as NAV_EXPANDED_ALIASES_ELSEWHERE does. The rename can stay on the other eight branches.
  • S2. z.string().min(1) admits blank, padded and multi-line strings with no bound. DatasetMemberSynonymsSchema (ADR-0149 D1) is the precedent for this kind of value. Tightening is free now and a narrowed change after release. The same applies to the translation node, and the objectui mirror should follow (N4).

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

  • keywords sits on the shared nav base, so all nine non-separator branches carry it. The separator refuses it with its own prescription (SEPARATOR_NAV_ITEM_GUIDANCE). The translation node takes it beside label with the same alias spellings, and still owes label and refuses unknown keys. All of this is pinned in app-nav-keywords.test.ts.
  • Nothing reads it. The ledger row grades it planned, with Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055 as the consumer and authorWarn off, and both describes carry [PLANNED — not yet read]. authorable-surface/ui.json gains the nine rows.
  • The objectui mirror and NAV_ENTRY_BASE_KEYS declare the key, and the nav-target fixture follows.
  • Clause-②: yes (widening) and Metadata-protocol: added hold, with @objectstack/spec: minor.
  • The dashboards.json anchor now points at setup.app.ts#nav_system_overview, which is where feat(setup): ten Setup group anchors; a nav group's renamedFrom keeps retired ids working (#39053) #39092 moved that entry.
  • The changeset and both docs pages are true sentence by sentence, except the "an empty string is refused" rule, which S2 settles.

Nit, my own reading too (the L2's N3): the app.json row's note still says the objectui mirror "does not declare the key yet, so the console parse drops it". This head declares it. The fix commit can carry the correction.

Once a fix head with the L2 delta is in, I post an L1 delta.

…names both keys (#39052)

L2 S1: on a `group`, `aliases` can also mean the retired group ids of
`renamedFrom`, so it is answered with a prescription naming both keys;
the bare rename to `keywords` stays on the other eight branches.
L2 S2: a keyword is one trimmed, non-empty word or phrase of at most 60
characters, at most 20 per entry, at the nav item, the translation node
and the objectui mirror alike (ADR-0149 D1's synonym rule); the test
holds both spec doors to the same verdicts. The translation node's
jsdoc leaves replace-or-add to the reader (#39055) and says why it is
per-locale unlike dataset synonyms; the ledger note no longer says the
mirror lacks the key.

Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Dec 2, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 44e94e43c8287f81c4c2898e9de03881e4478170
Local-runs: none
Scope: 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/types/src/zod/app.zod.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/nav-target.ts

Delta review of the fix to record 7344994866 (head 8735f0409). Read: the fix diff 8735f0409..44e94e43c (7 files), the net diff against main on the new head (still 18 files), and the check-runs on the new head. Everything the first record judged and the fix did not touch stands as judged there.

① Derived judgments

  • Nav item value rule, narrowed inside the same unreleased widening: right. navKeywordsSchema() takes each keyword as a string of at most 60 characters matching one trimmed word or phrase (the pattern refuses the empty string, a blank string, leading or trailing whitespace and a line break), and at most 20 per entry. It is the dataset synonym's rule (ADR-0149 D1). Nothing released ever accepted the looser set, so this is not a narrowed change against main: against main the key is still only added.
  • Translation node value rule: right. The same three limits, restated inline because the module does not import the app schema. The test holds the two spec doors to equal verdicts over one refused and accepted corpus, bounds included.
  • aliases per variant: right. It left the shared table. Eight branches (every variant but group and separator) still answer it with the bare rename to keywords; group answers it through guidance with a prescription naming both keywords and renamedFrom; a separator files neither. An exact guidance entry is consulted for the exact key, and the group no longer carries a rename for it, so the two channels cannot disagree. Both destinations the prescription names parse on a group.
  • objectui mirror: right. keywords now carries the same three limits, so objectui validate refuses what the save door refuses; the doc arm is built from this shape and follows.
  • Public surface. The describes on both schemas state the rule (trimmed, non-empty, at most 60, at most 20); the translation node's describe no longer states a replace rule. The generated nav reference page is regenerated in the same commit.
  • Gate verdicts: none yet on this head. CI was still starting. Read at 2026-12-02T12:27Z: 27 check-runs, 20 in progress, 7 skipped, none concluded. Read again at 12:28Z, at close: 39 check-runs, 5 success, 11 skipped, 23 in progress, none failed; the test shards had not all registered. The dev's own account (spec ui/system/shared 10808 pass; ui types and app-shell inspectors 13847 pass) is a claim, not a gate. This record judges the design of the fix; it does not stand in for the check-runs, and the head is not mergeable on this record until they conclude green.

② Semver level

Unchanged and right: Clause-②: yes (widening), Metadata-protocol: added, @objectstack/spec minor, @object-ui/types and @object-ui/app-shell patch. The fix tightens a key that no release carries, so no narrowed declaration is owed. The changeset body now states the value rule and the group's answer for aliases, and agrees with the tree. Check Changeset was in progress at close.

③ Boundary flags

  • Replace or add (the first record's escalation). Answered for this card: the schema no longer publishes a rule. The describe drops "replaces"; the jsdoc says the key is per-locale on purpose, names where that departs from DATASET_MEMBER_SYNONYMS_NOT_TRANSLATED and why (the card's "aliases follow the current locale"), and leaves replace-or-add to the reader's card. The decision itself is still unmade and now sits with Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055; that card should carry it as an explicit line before its reader lands. One sentence on the nav item's own jsdoc still describes the palette as matching words "resolved for the current locale", which fits either outcome.
  • Mirror flag, D4 content, the docs/qa amendment, open_questions. As answered in the first record; the fix touches none of them.
  • SQL push-down. Not applicable: no query, id materialisation or in-app join in the fix.

④ Design judgment

S1: closed. On a group, aliases is answered with both keys it can mean there, as a prescription and not a rename; the author who meant retired ids is sent to renamedFrom. The comment in the shared table and the key's jsdoc both say where aliases is now assembled. Pinned by a test that also parses both destinations.

S2: closed. The accept set now refuses what the stated intent refuses, at both spec doors, with messages that say what to write. Refused rather than trimmed, as the precedent does.

N2: closed. The translation node's jsdoc names the departure from dataset synonyms and its reason.

N3: closed. The app.json note says the mirror declares the key with the spec's accept set and that the nav editor's retype keeps it.

N4: closed. The mirror restates the rule; its comment says so.

N1: left as stated, an accepted deviation for #39055: the translation node still requires label, so per-locale keywords on a label-inheriting entry need a label on the node (an empty one is skipped by lookupNavLabel). Relaxing it later is a widening.

Tried against the fix, nothing graded:

  • The pattern has no multiline flag, so a trailing line break is refused, not ignored. A tab or other whitespace inside a phrase is accepted, as in the dataset rule.
  • The limits are written in three places (the nav item's constants, the translation node's literals, the mirror's literals). The two spec doors are held together by the test; the mirror's copy is held only by its comment. A cross-package pin belongs with Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055, which gives the mirror its first reader.
  • translateApp, the nav merge and the read gate copy an entry whole, so the stricter value rule changes nothing they do.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-0cmqba
Reviewed-by: session_01WGufzfhZDUp9rF94Nz3frb

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 delta — ACCEPT on 44e94e43c8287f81c4c2898e9de03881e4478170

The contract-tier delta record 7345414177 is on this head: PASS, with S1 and S2 closed and N2–N4 closed. That answers my REWORK 7345119048. Check-runs: 63 success, 11 expected-skip, 0 failed, 0 pending; mergeable_state is clean.

Verified on the tree (one commit, 44e94e43):

  • S1. aliases has left the shared NAV_ITEM_ALIASES. navItemSurface renames it to keywords on the eight branches where it can only mean search words. A group answers it with NAV_GROUP_ALIASES_GUIDANCE, a prescription that names keywords and renamedFrom. A separator declares neither key. synonyms, searchTerms and searchKeywords still rename everywhere.
  • S2. navKeywordsSchema follows the dataset synonym's rule: at most 60 characters, at most 20 per entry, and ^\S(?:.*\S)?$ without the s flag. That refuses an empty string, padding and a line break, and refuses rather than trims. The translation node restates the same three numbers and the same regex, and the test holds both spec doors to one verdict corpus. The objectui mirror restates the rule too, so objectui validate refuses what the save door refuses.
  • Prose. The translation jsdoc now leaves replace-or-add to the reader (Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055) and gives the reason for the per-locale departure from dataset synonyms. The app.json note is corrected. The changeset's rewritten bullets and content/docs/references/ui/app.mdx are true sentence by sentence.
  • Declaration. It stands: Clause-②: yes (widening) and Metadata-protocol: added, with @objectstack/spec: minor. The rule tightens a key that has not been released, so nothing is narrowed.

N1 is left as stated for #39055. Not governed: the zone lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

ACCEPT — PR #39125 @ 44e94e43c8 (Fixes #39052, epic #39050, PR 2 of this card thread; claim 7339233623 with amendments 7342983899, 7343994902, 7344032990 and 7344320317; key name keywords per seat ruling).

落地

reading value
check-governed-merges.mjs --pr 39125 NOT governed; 532 changed lines ≤ 3000
pr-state.mjs on 44e94e43 65 success · 13 expected skip · 0 failed · 0 pending; mergeable_state clean
landing-k.mjs --pr 39125 K = 2 < 15
dispatch gates --ran 123/123 exit 0 on this head (card thread)

State change: ready for review + auto-merge, by the owning seat; on merge it closes #39052.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 2, 2026 13:22
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 3dfffef Dec 2, 2026
79 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-0cmqba branch December 2, 2026 13:52
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.

Navigation items accept search aliases, per locale (Setup redesign #39050)

2 participants