Skip to content

Setup navigation has ten new group anchors; a contribution to a retired group id still lands in the right group (#39050) #39053

Description

@objectstack-fleet

repo:objectstack@os-bob · os-bob · session_012dn2Ac2cy8paBGrxmoLwNQ

Source: topic #39050 · category ③ (child of the maintainer's epic). The maintainer's words on #39050: 06:03Z 「不要 沿用旧分组 id ,改掉,然后立专题卡」; 06:12Z 「分拆子卡并用 fable 评审」 (the split below was reviewed by Fable against the code before filing). Rulings D1–D4 are in the epic's ruling comment.

Grade: p2 (the epic's grade) · area:ux · type Feature · suggested domain server (triage sets it) · size L · est. 3 person-days · evidence: read (objectstack main, 2026-12-02).

What

Setup's left navigation gets the ten group anchors ruled on #39050 (D1), and a contribution that still names a retired group id lands in the right new group with a deprecation diagnostic (epic row 1).

  • packages/platform-objects/src/apps/setup.app.ts: ten new anchors in the ruled order: group_users_org, group_access_sharing, group_apps_ai, group_routing_approvals, group_audit_data (expanded); group_company, group_currency_units, group_notifications, group_login_security, group_integrations_dev (expanded: false). 概览 is a pinned top-level item written in setup.app.ts (a contribution without group is appended at the end of the top level, so it cannot pin itself). The nine old ids are retired.
  • Old→new map: group_people_org→group_users_org, group_access_control→group_access_sharing, group_apps→group_apps_ai, group_approvals→group_routing_approvals, group_diagnostics→group_audit_data, group_configuration→group_company, group_integrations/group_advanced→group_integrations_dev, group_overview→ top level. Each old id maps to exactly one group.
  • Where the map lives (settle first, write it on this card before coding): keep the Setup-specific table beside the anchors in platform-objects; packages/objectql (nav-contribution-diagnostics.ts findNavGroup matches ids exactly today, ~:139; registry-apps.ts#applyNavContributions) gains only a generic alias lookup. A declarative alias key on group would be a new protocol key and needs its own spec Feature card.
  • The diagnostic names the contributing package, at runtime and in os build / os validate.
  • The ten group labels in all 11 locales under the new keys, with source hashes (packages/platform-objects/src/apps/translations/*.ts, *.source-hashes.ts): the app-nav translation parity check requires every nav id translated and no keys left for deleted ids.
  • Tests that read the merged tree by old anchor ids: packages/cli/test/setup-integrations-order.pin.test.ts, setup-diagnostics-audience.pin.test.ts, packages/rest/src/rest.test.ts, and others the parity run surfaces.
  • content/docs/ui/apps.mdx (~:899-910), the public slot list for package authors, lists the new ids.

Acceptance

  • The merged Setup tree has ten groups in the ruled order and default states; 概览 is pinned with no group.
  • An item contributed to any old id lands in its mapped group, and runtime and os build both emit a deprecation diagnostic naming the package.
  • Translation parity is green in all 11 locales.
  • apps.mdx lists the new ids.

Reader: the dev who takes this card. The platform-items card and the plugin-contributions card are blocked by it.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-02T06:31Z · Seat route ruling for the alias-map location (zone osa-setup's pre-read on main 431f880): route A.

    • The retired group ids are declared on the new group anchor itself: an optional key on the group navigation node in packages/spec/src/ui/app.zod.ts listing the ids that group answers for. Clause-② yes (widening), Metadata-protocol added.
    • Why: the contribution fold (registry-apps.ts applyNavContributions → findNavGroup) and the os build door (checkNavContributionGroups) then read the same declared node, so a third-party contribution aimed at an old id keeps landing in the right group with no Setup-specific knowledge in the engine. This matches the maintainer's ruling that old ids survive only as aliases.
    • Not taken: a new registration API on objectql (C, a new export with no other user), and a Setup table hardcoded inside objectql (B, platform knowledge in the engine).
    • Built in one card thread of this seat together with Navigation items accept search aliases, per locale (Setup redesign #39050) #39052 (the navigation item search aliases, same file), as two serial PRs: this card first.
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: card thread of seat repo:objectstack@os-support-ai, PR 1 of 2 in this thread (#39053, then #39052), epic #39050 (zone osa-setup, the maintainer's priority ask)
    Session: session_01WGufzhPdWmTd47Fi2bKYZS
    Thread session: session_01WGufzfhZDUp9rF94Nz3frb
    Account: os-support-ai
    Branch: claude/project-thread-0cmqba
    Domain: domain:ui
    Seat: repo:objectstack@os-support-ai
    File surface: packages/spec/src/ui/app.zod.ts, packages/spec/liveness/app.json, packages/objectql/src/nav-contribution-diagnostics.ts, packages/objectql/src/registry-apps.ts, packages/objectql/src/core.ts, packages/objectql/src/index.ts, packages/runtime/src/dispatcher-error-vocabulary.ts, packages/platform-objects/src/apps/setup.app.ts, packages/platform-objects/src/apps/setup-nav.contributions.ts, packages/platform-objects/src/apps/translations/ (reason: the eleven locale bundles and their source hashes follow the new anchors), packages/cli/scripts/check-app-nav-i18n.mjs, packages/cli/src/utils/nav-contribution-groups.ts, content/docs/ui/apps.mdx, the existing tests that read the old anchor ids (named in the report), a changeset. Stop on breach; explain in the report.
    Container & model: L, mode:card-thread, model: TIER_DEFAULT (dispatch-gates --tier prints no MANDATORY line), effort: high; contract-tier L2 at CONTRACT_REVIEW_TIER for the published schema widening.
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: n/a — feature card
    Thread-read: 7337108944
    Premise: holds on main 431f880. Route A (seat ruling 7337108944) follows the renamedFrom precedent (position.zod.ts, field.zod.ts): renamedFrom: string[] on the group node, refusing its own id and duplicates. findNavGroup resolves an exact id first, then renamedFrom, shared by the fold and checkNavContributionGroups; a new warning nav_contribution_group_renamed names the package, the old id and the new id. nav_system_overview moves into setup.app.ts as the pinned top item, keeping manage_platform_settings. group_overview has no successor group: contributions to it go to the top level with the existing missing-group warning. Removing "All Settings" stays with #39057, and the other contributions move in #39057 and #39058; until then they land through renamedFrom with the warning.
    Serial constraints cleared: check-handover.mjs --inflight meets #38140 by directory only; its PR #39061 touches neither app.zod.ts nor apps.mdx.

  3. added
    pm:dispatched
    on Dec 2, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-12-02T06:40Z · claim 7337213513, PR 1 surface widened before writing (card thread ask).
    File surface (added): packages/spec/src/ui/app-nav-group-renamed-from.ts and its test (os-dev.md rule 3: app.zod.ts is over 1,000 lines, so the new refusal family goes to a sibling module, as identity/position-renamed-from.ts does; app.zod.ts only adds the key and the two superRefine calls), the generated spec artifacts the build regenerates from the widened schema (json-schema, authorable-surface, generated docs; regenerated, never hand-edited).
    Serial constraints cleared: the new module is a new file; the generated artifacts follow the build and #39061 (#38140) shrinks them in other entries only.

  5. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-12-02T06:41Z · claim 7337213513, PR 1 surface widened before writing (card thread ask, second of two).
    File surface (added): packages/cli/src/commands/compile.ts and packages/cli/src/commands/validate.ts, the nav-group findings headline blocks only. Both print every checkNavContributionGroups finding under one fixed headline that announces a relocation to the app's top level; the new nav_contribution_group_renamed warning reaches the same list (that is how os build and os validate emit it, per the card's acceptance), so each headline splits the two codes or the renamed case is announced as a relocation.
    Serial constraints cleared: check-handover.mjs --inflight over both files reads no in-flight surface on them; the one unread surface is #38415, a cross-repo watch of this seat that writes no code here.

  6. added 4 commits that reference this issue on Dec 2, 2026
  7. added 3 commits that reference this issue on Dec 2, 2026
  8. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
     "issue": 39053,
     "status": "done",
     "branch": "claude/project-thread-0cmqba",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39092",
     "session": "session_01WGufzfhZDUp9rF94Nz3frb",
     "premise_still_valid": true,
     "summary": "Head b95ff51c1. Setup gets the ten ruled group anchors, with the System Overview dashboard pinned above them, labelled in 11 locales. GroupNavItemSchema gains an optional `renamedFrom` (seat route A, ruling 7337108944); five honesty rules are judged at AppSchema level in a sibling module. objectql resolveNavGroup (exact id first, then renamedFrom) serves both the read-time fold and checkNavContributionGroups. A rename hit gives the warning `nav_contribution_group_renamed`, naming package, old id and successor, and it is excluded from getAppNavDiagnostics. Every platform contribution still names an old id and lands through the alias until #39057/#39058; group_overview has no successor, so mcp nav_connect_agent relocates to the top level with the `missing` warning.",
     "tests": "New: spec app-nav-group-renamed-from.test.ts (10 pass); objectql registry-nav-contribution-group-semantics #39053 describe (5 pass, nav suites 135 + protocol-meta/registry-nav-contributions 107); platform-objects full 2233 pass. Old-anchor-id tests updated (all green): platform-objects.test.ts, setup-packages-door.test.ts, cli setup-integrations-order.pin, setup-diagnostics-audience.pin, connect-agent-both-halves-wire.pin (volatile toHaveLength(37) x2 deleted per the AGENTS.md volatile-count rule), format.server-ready-dev-admin-audience.test, plugin-audit audit-nav-contribution (3), plugin-security people-org-assignment-nav-contribution (5), service-knowledge knowledge-settings-contribution (53 in file run), service-messaging slack-channel-composition (7), service-settings settings-branding-posture.pin + setup-nav-hub-parity (38). Package suites green: plugin-sharing 1769, plugin-webhooks 322, plugin-approvals, plugin-auth, mcp, cloud-connection, service-automation, rest.test.ts 216.",
     "gates": "dispatch-gates --ran: 129 derived, 129 run, 0 NOT-MEASURED, all exit 0 (five exited 3 on prerequisites first — teardown self-test, skill-examples, dual-build-cjs-loads, i18n-coverage, published-readme-exports — and exited 0 after `pnpm build` under os-verify-lock and a fetch of the fixture commit). tsc --noEmit spec/objectql/cli/runtime clean; check:test-typecheck plugin-security/plugin-audit/service-knowledge OK; check:generated green after --fix. PR check-runs: pending at report time.",
     "mcp_calls": "0",
     "api_writes": "2 — fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/39092/assignees), this os-dev-report comment (POST /issues/39053/comments)",
     "classifier_refusals": [
      {
       "command": "a one-liner writing the dispatch-gates --ran file by suffixing every derived command with ':: exit 0'",
       "reason": "[Undermining Oversight]",
       "mode": "thread",
       "human_turn_before": "yes",
       "resend": "passed — rebuilt the file from the recorded per-command exit codes of both runs"
      }
     ],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: c · reach: exception: maintainer · examples/app-showcase/src/system/translations/index.ts:1149 comment says 审批 matches the platform bundle's `group_approvals`; that key is now group_routing_approvals (分派与审批) · comment only · dedupe words: showcase approvals label comment",
      "carrier: seat · noted, not filed"
     ],
     "deviations": "Reviewer request on os-support-ai not sent at draft open: fleet-write pr_create's rule puts pr_request_reviewers at the seat hand-off after ACCEPT, so assignee only."
    }

    Generated by Claude Code

  9. added 2 commits that reference this issue on Dec 2, 2026
  10. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-12-02T09:00Z · claim 7337213513, PR 1 (#39092) surface widened by a real CI red (card thread ask, route A).
    File surface (added):

    • packages/spec/src/ui/index.ts: one line, export * from './app-nav-group-renamed-from', the way checkAppSingleAiChatEntry is exported, plus the check:generated regeneration it causes.
    • ui/packages/types/src/zod/app.zod.ts: declares renamedFrom by reference to the spec group schema and chains .superRefine(checkAppNavGroupRenamedFrom) on AppComponentSchema. Without it, objectui's navigation schema strips the unknown key and its door silently drops renamedFrom.
    • ui/packages/types/src/__tests__/spec-object-refinements-7715.test.ts: the new check joins the SpecAppFields → AppComponentSchema row's attached list. That row's specObjectLevelChecks count went from 2 to 3, and it is the one failure in the Test UI shard on 7e3c98f.
      All three are additions, so the PR stays Clause-②: yes (widening). The new export is part of that widening, and the contract-tier L2 delta reads it.
      Serial constraints cleared: check-handover.mjs --inflight meets [Decision] Form view subforms has no reader since #36425: retire it (ADR-0035 layer removed), or build child-row tables into the named and public form page #38140 at the directory packages/spec/src/ui/ only; its open PR feat(spec)!: retire the form's subforms (ADR-0049, #38140 PR 1 of 2) #39061 touches none of these three files.
      Ruled out: route B, dropping the AppSchema refinement and leaving the rules to the build door, because it weakens the parse-time rules.
  11. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-12-02T09:01Z · claim 7337213513, PR 1 (#39092), a second real CI red on 7e3c98f (card thread ask, fix (i)).
    File surface (added): packages/cli/test/dev-start-shared-data-key.integration.test.ts, the transcript tail width only (two lines, near :367 and :378). The test reads the last 4,000 characters of the boot output and expects the line using <project key>. The stock boot now prints four nav_contribution_group_renamed warnings, about 2 KB, which push that line out of the tail. Nothing is functionally wrong, and the warnings leave once #39057 and #39058 move the first-party contributions to the new ids.
    Ruled out: fix (ii), logging the rename notice below warn, because it would hide the notice from the package authors it is for.
    Serial constraints cleared: check-handover.mjs --inflight over the file reads no other in-flight surface on it.

  12. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-12-02T09:12Z · claim 7337213513, PR 1 (#39092), with amendment 7340230657.
    File surface (added): ui/packages/types/src/__tests__/imported-defaults-8317.test.ts, three lines. It is the import-boundary census for the same chain: once checkAppNavGroupRenamedFrom is chained on AppComponentSchema, every spec value objectui imports must be listed there. The edit adds the import and one ['checkAppNavGroupRenamedFrom', checkAppNavGroupRenamedFrom] row next to checkAppSingleAiChatEntry.

  13. added 2 commits that reference this issue on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions