Repository navigation
feat(setup): ten Setup group anchors; a nav group's renamedFrom keeps retired ids working (#39053) - #39092
Conversation
Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
…le Setup entry count Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
…ng and settings read the new Setup anchors Contribution-level assertions keep the old ids (contributions move in #39057/#39058); only lookups into the served Setup tree and the Setup translation keys move to the groups that took the old ids over through `renamedFrom`. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
…hangeset Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 5 package(s): 45 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 17 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 196 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 9e4754a7caa28591045ec710807acab6a1d9564f && git checkout 9e4754a7caa28591045ec710807acab6a1d9564f
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4b8a67d8fabe96eac4110a418ae53cb1e0f6f025 155055746a8ea66306fb018c831992f541723cd0 && git checkout -B drift-repro 4b8a67d8fabe96eac4110a418ae53cb1e0f6f025 && git merge --no-ff 155055746a8ea66306fb018c831992f541723cd0
node scripts/docs-audit/affected-docs.mjs --json 4b8a67d8fabe96eac4110a418ae53cb1e0f6f025
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review — REWORK on
|
…e notices get their own check L1 M1 on #39092: `NavContributionGroupDiagnostic` is published (the return type of `checkNavContributionGroups` and `getAppNavDiagnostics`), so it stays the relocation finding. The either-finding union is the new `NavContributionGroupFinding`; compile-time rename notices come from the new `checkNavContributionGroupRenames`, and the cli reads both. The registry dedupes rename notices outside `navGroupDiagnostics`, so `getAppNavDiagnostics` is unchanged from main. The cli tells the two apart by shape, so it imports no value the build/validate parity scan would read as a gate. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfhZDUp9rF94Nz3frb Contract reviewServed-tier: Inputs read: card #39053 with its five comments (seat ruling 7337108944, claim 7337213513 and its two amendments, the os-dev-report), PR #39092's body, file list (53 files) and two comments, the net diff against Check-runs on this head when this record was written: 25 success, 0 failed, 34 still in progress. Completed and green: Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards, every Lint family, Type Check · source gates, Build Docs, Dogfood Regression Gate, Live E2E UI. Still pending: Build Core, Type Check · workspace / debt ledger / consumer gates, Type Check UI, Build & E2E UI, Test Core 1–12 and Test UI 1–16. This verdict is on the contract and the design; it does not stand in for those pending conclusions. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
S1 (should-fix) — Retiring N1 (nit) — The PR body still describes head N2 (nit) — The module docblock says the rules left unjudged for a group that arrives through N3 (nit) — The live-id refusal message says a contribution naming the id "lands on that entry's id, never here". That is true only when the live entry is a group; for a non-group entry the resolver's exact pass would not match it. The refusal itself is right. N4 (nit) — No must-fix. Implemented-by: VERDICT: PASS Generated by Claude Code |
…till aimed at group_overview L2 S1 on #39092: the retired `group_overview` carried `manage_platform_settings`; mcp's `nav_connect_agent` relocates to the top level without it until its contribution moves. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfhZDUp9rF94Nz3frb Contract reviewServed-tier: Delta review of the record in PR comment 7339624012 (head Check-runs on this head when this record was written: 8 success, 0 failed, 22 still in progress (the run had just started). Green: Governed Surface Queue Guard, Spec property liveness, PR-body guards, Check PR Size, Check Documentation Links. Pending: Check Changeset, every Lint and Type Check family, Build Core, Build Docs, Build UI Deps, Dogfood Regression Gate, Live E2E UI and the test plans. This verdict is on the contract and the design; it does not stand in for those pending conclusions. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentS1: closed. The changeset now says that a contribution still naming N1: closed. The PR body now describes this tree: the relocation surface is unchanged, the union is N2, N3, N4: left as accepted deviations, unchanged on this head. N2 goes to the seat as a follow-up card. No must-fix, no should-fix. Implemented-by: VERDICT: PASS Generated by Claude Code |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfhZDUp9rF94Nz3frb CI on
Every other check on this head is green. Generated by Claude Code |
…two-key boot test reads the whole output Amendments 7340230657 / 7340258639 / 7340541943 on #39053: - `@objectstack/spec/ui` exports `checkAppNavGroupRenamedFrom` (api-surface and export-origins regenerated); - objectui's `AppComponentSchema` chains it, and its nav item declares `renamedFrom` so the strip-unknown mirror no longer drops the key; the objectui#7715 census and the objectui#8317 import-boundary census list it; - `dev-start-shared-data-key.integration.test.ts` reads the whole boot output, so unrelated boot notices cannot push the asserted line out of a fixed-size tail. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
…medFrom check Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfhZDUp9rF94Nz3frb Contract reviewServed-tier: Second delta review, after the records in PR comments 7339624012 (head Check-runs on this head: 63 success, 11 skipped, 0 failed, none pending. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
N5 (nit) — On objectui's flat arm a non-group entry may carry N6 (nit) — objectui declares the entries as plain strings, not in the nav-id grammar, and S1: closed (on No must-fix, no should-fix. Implemented-by: VERDICT: PASS Generated by Claude Code |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta — ACCEPT on
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #39092 @
落地
State change: ready for review + auto-merge, by the owning seat; on merge it closes #39053. |
#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>
Requested by Yibo Wang · project thread
Fixes #39053
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — no skill teaches
navigationContributionsor Setup's anchors; the key is taught where contributions are, incontent/docs/ui/apps.mdx(updated here)维护者速读
renamedFrom(spec 加宽),列出被取代的旧组 id;贡献仍写旧 id 时落到新组。os build/os validate读同一节点,命中旧 id 时发nav_contribution_group_renamed警告并点名包。renamedFrom落位并带警告;group_overview无继任,回落顶层。What changes
@objectstack/spec—GroupNavItemSchema.renamedFrom?: string[](nav-id grammar). Five rules are judged on the whole app in a sibling module,ui/app-nav-group-renamed-from.ts(checkAppNavGroupRenamedFrom, chained onAppSchema): an entry is not the group's own id; no repeat within a list; not an id any entry of the app (navigation and areas) still declares; no old id claimed by two groups; norenamedFromon a group insideareas[].navigation, where contributions never fold. They sit onAppSchemarather than on the union's group member because a refinement there adds new sites to the shrink-onlydropped-refinements.baseline.json. Regenerated:authorable-surface/ui.json,content/docs/references/ui/app.mdx,docs/references/api/package-api.md,docs/references/kernel/manifest.md.@objectstack/objectql—resolveNavGroup(items, id)makes two passes over the tree: an exact group id first, then a group whoserenamedFromlists the id.findNavGroupdelegates to it, so it now also finds a group throughrenamedFrom; nothing changes for a tree that writes norenamedFrom. The read-time fold (applyNavContributions) and the build door both use it. A rename hit gives a newnav_contribution_group_renamedwarning naming package, retired id and successor, logged once per package and old id per app.NavContributionGroupDiagnostic(withrelocated),checkNavContributionGroups()andSchemaRegistry#getAppNavDiagnostics()are unchanged frommainand never carry a rename notice. The registry dedupes rename notices in its own moduleWeakMap, keyed by the registry's diagnostics map, soregistry.tsis untouched.checkNavContributionGroupRenames()(the compile-time notices,NavContributionGroupRenamedDiagnostic[]),resolveNavGroup,navContributionGroupRenamedDiagnostic,NAV_CONTRIBUTION_GROUP_RENAMED, and theNavContributionGroupRenamedDiagnostic/NavContributionGroupFinding(either finding) /NavGroupResolutiontypes.formatNavContributionGroupDiagnostic()'s parameter widens toNavContributionGroupFinding.@objectstack/spec/uiexport and objectui's mirror (seat amendments 7340230657 / 7340541943) —checkAppNavGroupRenamedFromis exported besidecheckAppSingleAiChatEntry, and api-surface / export-origins are regenerated.@object-ui/types'AppComponentSchemachains it. Its navigation item declaresrenamedFrom, because that schema strips unknown keys and would otherwise drop it. The objectui#7715 census and the objectui#8317 import-boundary census each list the check.@objectstack/runtime— a classification row for the new code indispatcher-error-vocabulary.ts(lowercase per ADR-0112 D6c).@objectstack/cli—findNavGroupDiagnosticsreturns both lists (relocations, then rename notices). The headline blocks incompile.ts/validate.tssplit them by shape ('relocated' in d), each with its own headline. They import no value constant, which the build/validate parity scan would read as a gate.@objectstack/platform-objects—setup.app.ts:nav_system_overviewis pinned at the top, thengroup_users_org,group_access_sharing,group_apps_ai,group_routing_approvals,group_audit_data(expanded) andgroup_company,group_currency_units,group_notifications,group_login_security,group_integrations_dev(collapsed). Six groups carryrenamedFromfor the eight retired anchors other thangroup_overview. Group gates are kept: routing_approvals and integrations_dev keepmanage_platform_settings. Thegroup_overviewcontribution insetup-nav.contributions.tsis gone (the dashboard is pinned). Setup translations in 11 locales re-key the nine old group labels to the ten new ones, and the source-hash maps are updated.content/docs/ui/apps.mdxgets the new anchor table (with a "took over" column), arenamedFromparagraph, and an example.Tests
packages/spec/src/ui/app-nav-group-renamed-from.test.ts(10) covers the key parse, its absence, the full valid app, grammar, object-variant refusal, and each of the five refusals at its path.packages/objectql/src/registry-nav-contribution-group-semantics.test.ts, under the describe#39053:getAppNavDiagnosticsis empty for a rename;missing;checkNavContributionGroupRenames, andcheckNavContributionGroupsstays empty for a rename;packages/platform-objects/src/platform-objects.test.ts: the ruled order and expanded states, and the retired-id owner map.packages/platform-objects/src/platform-objects.test.ts: the shell allows the pinned overview, the integrations anchor checksgroup_integrations_dev, andshellGroupIdsincludesrenamedFromentries.packages/platform-objects/src/apps/setup-packages-door.test.ts:group_apps_ai.packages/cli/test/setup-integrations-order.pin.test.ts: served group isgroup_integrations_dev; items filtered to those contributed undergroup_integrations.packages/cli/test/setup-diagnostics-audience.pin.test.ts:group_audit_data.packages/cli/test/connect-agent-both-halves-wire.pin.test.ts: top level starts withnav_system_overview,nav_connect_agentrelocates to top level, andgroup_apps_aiholdsnav_packages. The two volatiletoHaveLength(37)entry counts are deleted per AGENTS.md's volatile-count rule.packages/cli/src/utils/format.server-ready-dev-admin-audience.test.ts:group_users_orgwithrenamedFromcontaininggroup_people_org.packages/plugins/plugin-audit/src/audit-nav-contribution.test.ts: served undergroup_audit_data.packages/plugins/plugin-security/src/people-org-assignment-nav-contribution.test.ts: served undergroup_users_org/group_access_sharing; the locale filter reads thegroup_users_orglabel.packages/services/service-knowledge/src/__tests__/knowledge-settings-contribution.test.ts,packages/services/service-settings/src/setup-nav-hub-parity.test.ts,packages/services/service-settings/src/settings-branding-posture.pin.test.ts:group_company.packages/services/service-messaging/src/slack-channel-composition.test.ts:group_integrations_dev.packages/cli/test/dev-start-shared-data-key.integration.test.ts(amendment 7340258639) now reads the whole boot output. The interim rename notices had pushed its assertedusing <key>line out of a fixed 4000-character tail.Acceptance notes
renamedFromand logs onenav_contribution_group_renamedwarning per package and old id until Platform-owned Setup items sit in their new groups under the new names; every old name stays searchable (#39050) #39057 / Plugin-contributed Setup items target the new group ids; 「审批中心」 is no longer a Setup entry (#39050) #39058 move them.group_overviewhas no successor: mcp'snav_connect_agentcontribution relocates to the top level with the existingnav_contribution_group_missingwarning. It also losesgroup_overview'smanage_platform_settingsgate (the entry has none of its own), so until it moves it shows to everyone who can open Setup. The page was already open to every user through Account. The changeset says so (L2 S1); its new home and its gate belong to Plugin-contributed Setup items target the new group ids; 「审批中心」 is no longer a Setup entry (#39050) #39058.groupdescription and example inNavigationContributionSchemastill showgroup_integrations. Moving them to the new ids belongs to Navigation items accept search aliases, per locale (Setup redesign #39050) #39052 (PR 2 in the same thread), as the dispatch split it.packages/cli/scripts/check-app-nav-i18n.mjsandnav-contribution-groups.tsneeded no change.renamedFromcan claim the same old id as an app group's, and nothing refuses it #39108; N3, the live-id message wording; N4, an import alias inregistry-apps.ts; N5, objectui's flat arm acceptsrenamedFromon non-group types, as it already doesexpanded; N6, objectui types the entries as plain strings, so a malformed entry is refused at publish rather than byobjectui validate.examples/app-showcase/src/system/translations/index.ts:1149says 审批 "matches the platform bundle'sgroup_approvals", and that key is nowgroup_routing_approvals(分派与审批). The comment only; left for the seat to route.Verification
registry-nav-*,protocol-meta); the platform-objects full suite,typecheckandcheck:test-typecheck; the cli pins;packages/rest/src/rest.test.ts. Package suites: plugin-audit, plugin-security, plugin-sharing, plugin-webhooks, plugin-approvals, plugin-auth, mcp, cloud-connection, service-automation, service-knowledge, service-messaging, service-settings, and service-datasource's group-reading file. All green.tsc --noEmitfor spec, objectql, cli, runtime: clean.check:generatedgreen after--fix;check:app-nav-i18nOK.tsc --noEmitobjectql and cli clean.packages/types391/391 files, spec app tests (308), and the two-key boot integration test (6) are green.node scripts/pm/dispatch-gates.mjs --ranon b95ff51: 129 derived families, 129 run, 0 not-measured, all exit 0. Five first exited 3 on prerequisites and passed after a fullpnpm buildand a fetch of the teardown fixture commit:check-plugin-teardown-shape --self-test,check:skill-examples,check:dual-build-cjs-loads,check:i18n-coverage,check:published-readme-exports.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb