Skip to content

feat(setup): ten Setup group anchors; a nav group's renamedFrom keeps retired ids working (#39053) - #39092

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

objectstack-fleet[bot] merged 12 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 #39053

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — no skill teaches navigationContributions or Setup's anchors; the key is taught where contributions are, in content/docs/ui/apps.mdx (updated here)

维护者速读

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 on AppSchema): 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; no renamedFrom on a group inside areas[].navigation, where contributions never fold. They sit on AppSchema rather than on the union's group member because a refinement there adds new sites to the shrink-only dropped-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 whose renamedFrom lists the id. findNavGroup delegates to it, so it now also finds a group through renamedFrom; nothing changes for a tree that writes no renamedFrom. The read-time fold (applyNavContributions) and the build door both use it. A rename hit gives a new nav_contribution_group_renamed warning naming package, retired id and successor, logged once per package and old id per app.
    • The published relocation surface keeps its contract (L1 M1). NavContributionGroupDiagnostic (with relocated), checkNavContributionGroups() and SchemaRegistry#getAppNavDiagnostics() are unchanged from main and never carry a rename notice. The registry dedupes rename notices in its own module WeakMap, keyed by the registry's diagnostics map, so registry.ts is untouched.
    • New exports, additions only: checkNavContributionGroupRenames() (the compile-time notices, NavContributionGroupRenamedDiagnostic[]), resolveNavGroup, navContributionGroupRenamedDiagnostic, NAV_CONTRIBUTION_GROUP_RENAMED, and the NavContributionGroupRenamedDiagnostic / NavContributionGroupFinding (either finding) / NavGroupResolution types. formatNavContributionGroupDiagnostic()'s parameter widens to NavContributionGroupFinding.
  • @objectstack/spec/ui export and objectui's mirror (seat amendments 7340230657 / 7340541943) — checkAppNavGroupRenamedFrom is exported beside checkAppSingleAiChatEntry, and api-surface / export-origins are regenerated. @object-ui/types' AppComponentSchema chains it. Its navigation item declares renamedFrom, 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 in dispatcher-error-vocabulary.ts (lowercase per ADR-0112 D6c).
  • @objectstack/cli — findNavGroupDiagnostics returns both lists (relocations, then rename notices). The headline blocks in compile.ts / validate.ts split 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_overview is pinned at the top, then group_users_org, group_access_sharing, group_apps_ai, group_routing_approvals, group_audit_data (expanded) and group_company, group_currency_units, group_notifications, group_login_security, group_integrations_dev (collapsed). Six groups carry renamedFrom for the eight retired anchors other than group_overview. Group gates are kept: routing_approvals and integrations_dev keep manage_platform_settings. The group_overview contribution in setup-nav.contributions.ts is 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.
  • Docs — content/docs/ui/apps.mdx gets the new anchor table (with a "took over" column), a renamedFrom paragraph, and an example.

Tests

  • New: 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.
  • New in packages/objectql/src/registry-nav-contribution-group-semantics.test.ts, under the describe #39053:
    • the fold lands a retired-id contribution in the renaming group and warns once;
    • getAppNavDiagnostics is empty for a rename;
    • an exact id wins over an alias;
    • an unknown id still relocates with missing;
    • the build half gives the same finding through checkNavContributionGroupRenames, and checkNavContributionGroups stays empty for a rename;
    • a mixed list splits by what happened to the items.
  • New in packages/platform-objects/src/platform-objects.test.ts: the ruled order and expanded states, and the retired-id owner map.
  • Existing tests that read the old anchor ids, updated to read the served tree by the new id. Contribution-level assertions keep the old ids, since contributions move in 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.
    • packages/platform-objects/src/platform-objects.test.ts: the shell allows the pinned overview, the integrations anchor checks group_integrations_dev, and shellGroupIds includes renamedFrom entries.
    • packages/platform-objects/src/apps/setup-packages-door.test.ts: group_apps_ai.
    • packages/cli/test/setup-integrations-order.pin.test.ts: served group is group_integrations_dev; items filtered to those contributed under group_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 with nav_system_overview, nav_connect_agent relocates to top level, and group_apps_ai holds nav_packages. The two volatile toHaveLength(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_org with renamedFrom containing group_people_org.
    • packages/plugins/plugin-audit/src/audit-nav-contribution.test.ts: served under group_audit_data.
    • packages/plugins/plugin-security/src/people-org-assignment-nav-contribution.test.ts: served under group_users_org / group_access_sharing; the locale filter reads the group_users_org label.
    • 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 asserted using <key> line out of a fixed 4000-character tail.

Acceptance notes

Verification

  • spec app tests plus the new file; the objectql nav suites (registry-nav-*, protocol-meta); the platform-objects full suite, typecheck and check: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 --noEmit for spec, objectql, cli, runtime: clean.
  • check:generated green after --fix; check:app-nav-i18n OK.
  • Head ea60dcc and later (L1 M1 fix): the objectql nav suites (149), the cli parity, nav-contribution-groups and Setup pins (58), and plugin-security's upgrade-impact report all green; tsc --noEmit objectql and cli clean.
  • Head 1550557: CI is fully green (63 success, 11 skipped). Locally: ui packages/types 391/391 files, spec app tests (308), and the two-key boot integration test (6) are green.
  • node scripts/pm/dispatch-gates.mjs --ran on b95ff51: 129 derived families, 129 run, 0 not-measured, all exit 0. Five first exited 3 on prerequisites and passed after a full pnpm build and 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

…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>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation 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

This PR changes 5 package(s): @objectstack/cli, @objectstack/objectql, @objectstack/platform-objects, @objectstack/runtime, @objectstack/spec, touching 74 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/objectql/src/core.ts, packages/objectql/src/index.ts, packages/spec/api-surface/ui.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

45 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 4b8a67d8fabe96eac4110a418ae53cb1e0f6f025.

⛔ 17 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/objectql/src/core.ts, packages/objectql/src/index.ts, packages/spec/api-surface/ui.json, …) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: os validate (command, 102 pages)
  • 14 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 — 196 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 4b8a67d8fabe96eac4110a418ae53cb1e0f6f025 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 9e4754a7caa28591045ec710807acab6a1d9564f — the merge of head 155055746a8ea66306fb018c831992f541723cd0 into base 4b8a67d8fabe96eac4110a418ae53cb1e0f6f025, 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 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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review — REWORK on b95ff51c1f (one must-fix)

This is a code verdict only. CI was not final when I read it (11 success, 11 skipped, 17 pending), so the next head is read again in full. Not governed (0 of 52 paths; 1,495 lines, under the human line). Route A is the seat's ruling 7337108944, and the shape follows it.

l1-face flags changeset for plugin-audit, plugin-security, service-knowledge, service-messaging and service-settings. Every one of those touched files is a *.test.ts. Each package's files[] is dist + README + CHANGELOG, so nothing they ship changes and no changeset entry is owed.

Must-fix

M1. NavContributionGroupDiagnostic is a published type, and this PR narrows it, but the PR declares Clause-②: yes (widening) only.

Both @objectstack/objectql@18.6.0 (latest) and 19.0.0-next.3 publish two things:

  • interface NavContributionGroupDiagnostic, with code: typeof NAV_CONTRIBUTION_GROUP_MISSING and relocated: readonly string[];
  • checkNavContributionGroups(...) and SchemaRegistry#getAppNavDiagnostics(...), both returning NavContributionGroupDiagnostic[] (read from both tarballs' dist/util-*.d.ts).

On this head that name is the union Missing | Renamed, and the renamed arm has no relocated. So a consumer that compiles today against either function's result breaks on upgrade. d.relocated stops type-checking, and so does a code === NAV_CONTRIBUTION_GROUP_MISSING assumption.

There is also a runtime change to the same contract. checkNavContributionGroups now returns rename notices in the same list. Its published docblock describes that list as relocations to the top level; this PR's own CLI headline split exists because of exactly that.

getAppNavDiagnostics filters to the missing arm at runtime. But registry.ts:5553 still declares NavContributionGroupDiagnostic[], so the type narrows there even where the values do not.

Pick one:

  • (a) Keep the published contract. NavContributionGroupDiagnostic stays the missing interface. The union gets a new name. getAppNavDiagnostics declares the missing type. The rename notices come from a new function, or from an opt-in on checkNavContributionGroups, and the CLI calls both. This adds names and changes none, so Clause-②: yes (widening) stays true.
  • (b) Declare the narrowing. That means Clause-②: yes (narrowing) with the type and function named, the ! and (narrowing) arm, and the dogfood battery it brings.

I recommend (a). The seat ruled out a new objectql registration API (C), but this is a diagnostic export, not a registration API, so (a) does not reopen that ruling.

For the seat (not a must-fix on the tree)

  • The translation edge. A customer's translation bundle keyed by an old group id (apps.setup.navigation.<old id>) stops labelling anything, silently. The changeset does say so. docs(skills): objectstack-i18n teaches that a stack may translate the platform's Setup and Account apps #39033 merged today and teaches stacks to translate Setup, so this edge now has readers. It follows from the maintainer's ruling to retire the old ids, so it is recorded here, not owed.

  • Stock boots will warn. Every first-party contribution on this head still names an old id:

    • setup-nav.contributions.ts in this same package;
    • plugin-approvals, plugin-audit, plugin-auth, plugin-security, plugin-sharing, plugin-webhooks;
    • cloud-connection, service-automation, service-datasource, service-knowledge.

    So a stock boot, and os build of any stack that composes them, prints a run of nav_contribution_group_renamed warnings that the stack's author cannot fix. mcp's connect-ui.ts names group_overview, so it moves to the top level with a nav_contribution_group_missing warning. The card names the platform-items and plugin-contributions follow-up cards, so this is transitional. Land those close behind this PR.

Checked and fine

  • renamedFrom's five rules. They are judged at the AppSchema root. The reason is that a refinement on the group branch would add a dropped-refinements site under every embedding schema, and that ledger only shrinks; the reason is sound. The two per-group rules are harmless on a contributed group, because the exact pass wins.
  • resolveNavGroup. Two passes, exact id first, group nodes only for both. The fold and checkNavContributionGroups read the same function, so the two paths cannot disagree.
  • Fold. The rename is recorded only when group.id !== c.group, and deduped on the per-app map. getAppNavDiagnostics filters at runtime, so the upgrade-impact report counts relocations only.
  • Relation. Fixes #39053: the acceptance list is met (ten anchors in the ruled order and states, the pinned overview, the old-id map, both doors naming the package, 11 locales, apps.mdx).

The contract L2 the card thread is running should see M1. I'll read its record together with the next head.

…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>
@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: ea60dcc28259b871f0f359d671f01ee26f1fca7c
Local-runs: none
Scope: packages/spec/src/ui/app-nav-group-renamed-from.ts, packages/spec/src/ui/app.zod.ts + packages/objectql/src/nav-contribution-diagnostics.ts, packages/objectql/src/registry-apps.ts, packages/objectql/src/core.ts, packages/objectql/src/index.ts, packages/cli/src/utils/nav-contribution-groups.ts, packages/cli/src/commands/compile.ts, packages/cli/src/commands/validate.ts, packages/runtime/src/dispatcher-error-vocabulary.ts, packages/platform-objects/src/apps/setup.app.ts (the key's first consumer)

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 main, and the check-runs on this head. The tree was judged, not the PR body.

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

  • GroupNavItemSchema.renamedFrom (optional string[], nav-id grammar): right, a widening. An app that does not write the key parses and resolves exactly as before. The five refusals in checkAppNavGroupRenamedFrom can only fire on an app that writes the key, so they refuse nothing that parses on main.
  • NavigationContributionSchema.group: right, unchanged accept-set. Only the description changed.
  • @objectstack/objectql published exports: no name changes shape or meaning for an existing input. Checked one by one on this head against origin/main:
    • NavContributionGroupDiagnostic is the same interface (code: typeof NAV_CONTRIBUTION_GROUP_MISSING, relocated present). The union is a new name, NavContributionGroupFinding.
    • checkNavContributionGroups() still returns NavContributionGroupDiagnostic[] and still carries relocations only. Rename notices come from the new checkNavContributionGroupRenames().
    • SchemaRegistry#getAppNavDiagnostics() keeps its declared return type (registry.ts:5553) and its values: rename notices are held in a separate per-registry map in registry-apps.ts and never enter navGroupDiagnostics.
    • findNavGroup() now also answers through renamedFrom. Its result differs from main only for a tree that carries the new key, so this is a widening, and the changeset names it.
    • formatNavContributionGroupDiagnostic() takes the wider NavContributionGroupFinding: every existing call still type-checks.
    • New names only: NAV_CONTRIBUTION_GROUP_RENAMED, resolveNavGroup, navContributionGroupRenamedDiagnostic, checkNavContributionGroupRenames, NavContributionGroupRenamedDiagnostic, NavContributionGroupFinding, NavGroupResolution, on both index.ts and core.ts.
    • AppsFacet.applyNavContributions' wider this pick is internal: index.ts re-exports nothing from registry-apps.ts.
      So the L1 review's M1 (written on b95ff51c1f) does not hold on this head; commit ea60dcc28 took its route (a).
  • os build --json / os validate --json warnings: right, additive. The list already carries several record families told apart by code; nav_contribution_group_renamed is a new code in it and adds no top-level key. Its records have items and renamedTo and no relocated, which the changeset states.
  • nav_contribution_group_renamed classification row: right. Same four ADR-0112 D6c tests as the nav_contribution_group_missing row beside it; Lint · CI, release & engine gates is green on this head.
  • Setup's served tree: nine group ids retired, ten added: right against the card and ruling D1 (order, expanded states, the old-to-new map, each old id owned by exactly one group). Translation keys under the old ids stop labelling; the changeset says so.
  • Who is served a contribution into group_overview: wrong as declared, see S1.

② Semver level

  • Changeset .changeset/39053-setup-ten-group-anchors.md: spec minor, objectql minor, platform-objects minor, cli patch, runtime patch. Check Changeset is green on this head. Metadata-protocol: added matches the one new authorable key.
  • Clause-②: yes (widening) holds for what the code packages publish: ① found no published export, return type or accepted input narrowed. No (narrowing) arm is owed for @objectstack/objectql.
  • The changeset body matches the tree (it names checkNavContributionGroupRenames, NavContributionGroupFinding and the unchanged relocation surface). The PR body does not: see N1.

③ Boundary flags

  • Dev flags and open_questions: the os-dev-report carries open_questions: []. Its one out-of-scope finding (a stale comment in examples/app-showcase) is the seat's to route and is not in this scope.
  • Seat ruling route A (7337108944) is what the tree implements: the alias is declared on the group node and read by the fold and by the build door through the same resolveNavGroup. No Setup-specific table entered packages/objectql.
  • Claim surface: packages/spec/liveness/app.json and packages/cli/scripts/check-app-nav-i18n.mjs were claimed and not touched; Spec property liveness is green without a ledger edit. Nothing outside the amended surface was written in the files judged here.
  • SQL push-down: no query, id materialisation or in-app join is added. The change is an in-memory walk of an app's navigation tree.
  • Interim state the card accepts: every first-party contribution still names an old id, so a stock boot and os build print nav_contribution_group_renamed for packages a stack author cannot edit, 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 land.
  • Read, not reviewed (unchanged lines, same on main): the fold pushes c.items by reference, and the build door reads the app's own navigation only, so a group that arrives by contribution is seen by the fold and not by os build. N2 touches this.

④ Design judgment

packages/spec/src/ui/app.zod.ts — holds. The key sits on the group member only (an object item refuses it under the strict object), has no default, and follows the renamedFrom precedent the ruling cites. The describe text agrees with the resolver sentence by sentence: exact id first, then renamedFrom; the warning code; both doors. The third superRefine on AppSchema adds no new refinement site.

packages/spec/src/ui/app-nav-group-renamed-from.ts — holds for an authored app. Each of the five rules is located at the path its docblock states, entries failing the grammar are left to the grammar, and area groups are refused on presence of the key. Tried to break it: nested groups, a retired id equal to a non-group entry's id, a retired id living in areas, two claimants at different depths. All are refused. See N2 and N3.

packages/objectql/src/nav-contribution-diagnostics.ts — agrees with the contract. Two full passes over the tree, so an exact id wins wherever the alias sits; only type: 'group' nodes count in either pass. checkNavContributionGroups skips whatever resolves, checkNavContributionGroupRenames reports exactly matchedBy === 'renamedFrom', so the two lists are disjoint and together cover every contribution the old check judged.

packages/objectql/src/registry-apps.ts — agrees. group.id !== c.group is true exactly when the alias pass answered. The notice is logged once per registry, app, package and old id, and kept out of getAppNavDiagnostics. See N4.

packages/cli/src/utils/nav-contribution-groups.ts, compile.ts, validate.ts — agree. Both commands call one function and print the same two headlines, so build/validate parity holds. The split on 'relocated' in d is sound for the two shapes that can reach the list.

packages/runtime/src/dispatcher-error-vocabulary.ts — agrees with the code's four properties as read in the emitting file.

packages/platform-objects/src/apps/setup.app.ts (first consumer) — the ruled order, states and map are met, and the two gated successor groups keep manage_platform_settings. One finding:

S1 (should-fix) — Retiring group_overview drops its manage_platform_settings gate for every contribution still aimed at it, and nothing declares that. On main the group gate pruned the whole subtree. On this head such a contribution is relocated to Setup's top level, where only the app gate setup.access applies. The in-tree case is packages/mcp/src/connect-ui.ts: its nav_connect_agent item carries no gate of its own and its comment says the group gate is why "who sees the entry does not move". It is now served to a setup.access holder without manage_platform_settings (the separation-of-duties auditor the group_audit_data comment describes). The same applies to any third-party entry aimed at group_overview. The dev moved the gate onto nav_system_overview by hand, so the gate was known to matter; the pin connect-agent-both-halves-wire.pin.test.ts reads only a principal holding both permissions, so it cannot see the change. The PR body's "Group gates are kept" is not true for this group. Exposure is limited (the page is open to every user through Account), which is why this is not a must-fix. Either keep the audience on this head, or state the change where a package author reads it (the changeset's group_overview sentence: the group's gate no longer covers a relocated entry, so gate the item itself) and have #39058 carry the MCP entry's gate.

N1 (nit) — The PR body still describes head b95ff51c1f: it says NavContributionGroupDiagnostic "is now their union", lists a NavContributionGroupMissingDiagnostic type that does not exist, and omits checkNavContributionGroupRenames and NavContributionGroupFinding. The changeset is correct. Fix the body (prose face).

N2 (nit) — The module docblock says the rules left unjudged for a group that arrives through navigationContributions[] are harmless, and argues it for the two per-group rules only. A contributed group may also carry renamedFrom naming an old id an app group already claims; the fold then lands later contributions in whichever claimant comes first in tree order, while os build (app navigation only) names the app's group. A contributed group with a duplicate exact id can do the same on main, so this adds no new class of behaviour. Follow-up card: say whether renamedFrom on a contributed group is supported, and either refuse it or state the tie-break.

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) — registry-apps.ts imports findNavGroup as resolveNavGroup, an alias kept from main that now shadows the name of a different real export. And recordNavGroupRename stores the diagnostic it builds but nothing reads it back; only the key is used.

No must-fix.

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

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>
@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: 7e3c98f005b4973ba222885bc2b79a46520eb28e
Local-runs: none
Scope: packages/spec/src/ui/app-nav-group-renamed-from.ts, packages/spec/src/ui/app.zod.ts + packages/objectql/src/nav-contribution-diagnostics.ts, packages/objectql/src/registry-apps.ts, packages/objectql/src/core.ts, packages/objectql/src/index.ts, packages/cli/src/utils/nav-contribution-groups.ts, packages/cli/src/commands/compile.ts, packages/cli/src/commands/validate.ts, packages/runtime/src/dispatcher-error-vocabulary.ts, packages/platform-objects/src/apps/setup.app.ts (the key's first consumer)

Delta review of the record in PR comment 7339624012 (head ea60dcc2). Read: the diff from that head to this one, the rewritten PR body, and the check-runs on this head. The delta is one file, one line: .changeset/39053-setup-ten-group-anchors.md. No file in the scope above changed, so sections ① to ④ of the earlier record stand for this head as written, with the changes below.

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

  • Unchanged from the earlier record for every schema and export judgment: no scope file moved.
  • Who is served a contribution into group_overview: the audience change is now declared, see S1 under ④. The behaviour on the tree is the same as on ea60dcc2.

② Semver level

  • The changeset's levels and its two declaration lines are unchanged (spec, objectql, platform-objects minor; cli, runtime patch; Clause-②: yes (widening); Metadata-protocol: added). Only the "Setup's anchors" paragraph gained text. Check Changeset is pending on this head; it was green on ea60dcc2 with the same front matter.
  • The widening arm still holds for the published code surface. The gate a relocated group_overview contribution loses is a behaviour of the Setup app's served tree, which the changeset now states to the package author it affects.

③ Boundary flags

④ Design judgment

S1: closed. The changeset now says that a contribution still naming group_overview is appended at the top level and loses the manage_platform_settings gate that group carried. It names the in-tree case (@objectstack/mcp's nav_connect_agent, no gate of its own), says who now sees it (everyone who can open Setup) and that the page was already open to every user through Account. That matches the tree as read on the earlier head: packages/mcp/src/connect-ui.ts still aims at group_overview with an ungated item, and setup.app.ts declares no such group. This is the "state it where a package author reads it" arm of S1. The gate itself is not restored on this head; it is carried by #39058, and the PR body's acceptance notes say so.

N1: closed. The PR body now describes this tree: the relocation surface is unchanged, the union is NavContributionGroupFinding, checkNavContributionGroupRenames is listed, and the nonexistent type name is gone.

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: claude/project-thread-0cmqba
Reviewed-by: session_01WGufzfhZDUp9rF94Nz3frb

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

CI on 7e3c98f005 has two real reds from this PR. Both fixes sit outside the claimed file surface, so they wait on a seat amendment, requested on the seat thread:

  • Test UI (12/16) fails ui/packages/types/src/__tests__/spec-object-refinements-7715.test.ts. AppSchema now carries three object-level checks, and objectui's AppComponentSchema mirror accounts for two. Proposed fix: export checkAppNavGroupRenamedFrom from @objectstack/spec/ui, declare renamedFrom on objectui's nav item, chain the check on AppComponentSchema, and add it to the census row's attached list.
  • Test Core (3/12) fails packages/cli/test/dev-start-shared-data-key.integration.test.ts:406. The test reads the last 4000 characters of boot output, and the interim nav_contribution_group_renamed warnings push the using <key> line out of that window. Proposed fix: widen that transcript tail.

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>
@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: 155055746a8ea66306fb018c831992f541723cd0
Local-runs: none
Scope: packages/spec/src/ui/app-nav-group-renamed-from.ts, packages/spec/src/ui/app.zod.ts, packages/spec/src/ui/index.ts + ui/packages/types/src/zod/app.zod.ts, packages/objectql/src/nav-contribution-diagnostics.ts, packages/objectql/src/registry-apps.ts, packages/objectql/src/core.ts, packages/objectql/src/index.ts, packages/cli/src/utils/nav-contribution-groups.ts, packages/cli/src/commands/compile.ts, packages/cli/src/commands/validate.ts, packages/runtime/src/dispatcher-error-vocabulary.ts, packages/platform-objects/src/apps/setup.app.ts (the key's first consumer)

Second delta review, after the records in PR comments 7339624012 (head ea60dcc2) and 7339690973 (head 7e3c98f). Read: the diff from 7e3c98f to this head (two commits, nine files), the three claim amendments on #39053 (7340230657, 7340258639, 7340541943), and the check-runs on this head. The scope files not named in the delta are byte-identical to the head already judged, so the earlier sections stand for them.

Check-runs on this head: 63 success, 11 skipped, 0 failed, none pending. Check Changeset, every Type Check family (Type Check UI included), Build Core, Test Core and Test UI are green.

① Derived judgments

  • @objectstack/spec/ui now exports checkAppNavGroupRenamedFrom (function): right, an addition. export * from the module publishes exactly that one name; the regenerated api-surface/ui.json and export-origins/ui.json each gain one line and lose none. It follows the sibling checkAppSingleAiChatEntry, which is exported for the same use.
  • @object-ui/types nav item accepts renamedFrom (string[], optional): right, a widening. Nothing that parsed before is refused; a document without the key parses to the same value.
  • AppComponentSchema chains checkAppNavGroupRenamedFrom: right. The function only raises issues on a tree that writes renamedFrom, so no existing objectui document is newly refused.
  • Which arms of objectui's nav item accept the key (asked for on this delta):
    • group: accepted, and judged by the five app-level rules. Right.
    • separator: refused. The separator branch refuses every key outside the spec separator's own key list, which is read off the spec and does not hold renamedFrom. Right.
    • doc: refused. That arm hands the whole entry to the spec's doc schema, whose key set is closed. Right.
    • the other eight types (object, dashboard, page, url, report, action, component and the rest of the flat arm): accepted, where the spec refuses the key as unrecognized. See N5.
  • Unchanged: every objectql, cli, runtime and Setup judgment of the first record.

② Semver level

  • Changeset: '@object-ui/types': patch added; the other five entries and both declaration lines are unchanged. Check Changeset is green on this head.
  • Clause-②: yes (widening) still holds: the delta adds one export and one accepted key and narrows nothing. spec is already at minor, which covers the new export.
  • The added sentence says objectui's validator "judges the key as the publish door does". That is true for a group in navigation or areas with entries in the nav-id grammar. It overstates two edges, N5 and N6.

③ Boundary flags

④ Design judgment

packages/spec/src/ui/index.ts — holds. One line, placed beside the export of the sibling app-level check.

packages/spec/src/ui/app-nav-group-renamed-from.ts — the docblock now says the module is re-exported and why; that agrees with index.ts. The function body is unchanged.

ui/packages/types/src/zod/app.zod.ts — agrees with the contract for the group case. The check is imported raw and chained on AppComponentSchema after its two siblings; it reads only ids, types and renamedFrom under navigation and areas[].navigation, all of which this schema keeps. NavigationAreaSchema uses the same nav item schema, so the areas rule is reachable. Both census tests list the new import.

N5 (nit) — On objectui's flat arm a non-group entry may carry renamedFrom: the key is declared for every type and the app-level check skips nodes that are not groups. The spec refuses it there. This is how that flat shape already treats expanded, children and runAction, and the publish door still refuses, so it is the mirror's existing leniency and not a new class.

N6 (nit) — objectui declares the entries as plain strings, not in the nav-id grammar, and checkAppNavGroupRenamedFrom skips an entry that fails the grammar because "the grammar refuses it". In the spec that is true; in objectui nothing refuses it, so an entry like Group Old passes objectui validate with all five rules skipped and fails at the publish door. Taking the spec's renamedFrom member by reference, as amendment 7340230657 describes, would close it. Follow-up or accepted deviation.

S1: closed (on 7e3c98f; the changeset paragraph is unchanged on this head).
N1: closed. N2, N3, N4: accepted deviations, unchanged.

No must-fix, no should-fix.

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

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 delta — ACCEPT on 155055746a8ea66306fb018c831992f541723cd0

M1: closed (route (a), first read on ea60dcc2). NavContributionGroupDiagnostic, checkNavContributionGroups, getAppNavDiagnostics and registry.ts keep main's published contract. The rename notices come from the new checkNavContributionGroupRenames, and the union has a new name, NavContributionGroupFinding.

Round-2 CI reds: fixed (7e3c98f → 5e47f672 → 15505574, under seat amendments 7340230657, 7340258639 and 7340541943).

  • Census. @objectstack/spec/ui now re-exports checkAppNavGroupRenamedFrom, with api-surface and export-origins regenerated. objectui's AppComponentSchema chains the same function and declares renamedFrom on its nav item; without that, it would have been stripped there. The 7715 census lists the check as attached, and the 8317 import-boundary census lists it too. The module docblock is updated to match the re-export.
  • Boot test. The two-key boot test now reads the whole output rather than a fixed slice.

Declaration. It stays Clause-②: yes (widening). The new spec export and objectui's optional renamedFrom only add surface. The changeset adds @object-ui/types: patch.

Contract L2. Second delta 7341580340 on this head is PASS: S1 closed, N1 closed, N2–N4 unchanged. N5 and N6 are new nits and accepted deviations: the flat arm accepts the key on non-group types, as it already does for expanded, and objectui types the entries as plain strings, so the spec grammar refuses a malformed one at publish.

Gates. Check-runs: 63 success, 11 expected-skip, 0 failed, 0 pending. Not governed (0 of 60 paths), 1,603 lines. l1-face flags changeset for plugin-audit, plugin-security, service-knowledge, service-messaging and service-settings, but every file it names there is a *.test.ts, so nothing they ship changes.

For the seat (unchanged from round 1). Every first-party contribution still names an old group id, so a stock boot prints a run of nav_contribution_group_renamed warnings. mcp's group_overview entry moves to the top level and loses its gate (L2 S1, recorded in the changeset, gate restored in #39058). Land the platform-items and plugin-contributions cards close behind this one.

Not Tier H: the seat lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

ACCEPT — PR #39092 @ 155055746a (Fixes #39053, epic #39050; card thread of seat os-support-ai, claim 7337213513 with amendments 7337277418, 7337300176, 7340230657, 7340258639 and 7340541943; route A per seat ruling 7337108944).

落地

reading value
check-governed-merges.mjs --pr 39092 NOT governed (0 of 60 paths); 1,603 changed lines ≤ 3000
pr-state.mjs on 15505574 65 success · 13 expected skip · 0 failed · 0 pending; mergeable_state clean
landing-k.mjs --pr 39092 K = 5 < 15
l1-face.mjs --pr 39092 FLAGGED, one item, changeset, which does not hold: the plugin-audit, plugin-security, service-knowledge, service-messaging and service-settings files are all tests that read the old anchor ids, so nothing that ships in those packages changes. .changeset/39053-setup-ten-group-anchors.md covers what users see

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

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 2, 2026 10:00
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit cef9a80 Dec 2, 2026
79 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-0cmqba branch December 2, 2026 10:30
os-support-ai pushed a commit that referenced this pull request Dec 2, 2026
#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>
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:ui size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants