Skip to content

fix(setup): capability Setup entries name the new group ids (#39058) - #39202

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/issue-39058-plugin-items-new-groups
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/issue-39058-plugin-items-new-groups

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Part of #39058

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:管理员打开“设置”时,各功能包提供的入口直接落在新的十个分组里;“审批中心”入口离开设置;“连接 AI 助手”移到“应用与 AI”分组,仍只对有平台设置权限的管理员可见。
  • 为什么做:属于“设置导航重组”专题,替每位打开设置的管理员消除入口靠旧分组名转接的告警和错位。
  • 出错会怎样:最坏是某个入口排位或分组不对,或“连接 AI 助手”对管理员的可见范围变化;只改导航贡献,可直接撤回。
  • 要你做什么:无。“权限集”已裁 A(不回到设置,由“岗位与权限”承接,搜索别名随 Setup navigation: the label renames and the retired approvals-inbox keys owed by #39058 land in the app translation bundles (#39050) #39204 补上)。“分派规则、队列、队列成员”移入需平台设置权限的分组,可见范围不变(三项本就各自要求该权限)。

What changes

Every Setup entry a capability package contributes from the claimed files now names its new group id (epic #39050, ruling D1), so these packages draw no nav_contribution_group_renamed notice on boot. Where a retired group was split, each entry names its group explicitly:

Package Entry ids Group Priority
plugin-approvals nav_approval_requests, nav_approval_actions, nav_approval_delegations group_routing_approvals 100
plugin-sharing nav_assignment_rules, nav_queues, nav_queue_members group_routing_approvals 200
plugin-sharing nav_sharing_rules, nav_record_shares group_access_sharing 200
plugin-security nav_position_holders, nav_permission_set_assignment group_access_sharing 150
plugin-audit audit log group_audit_data 100
plugin-auth SSO providers, SCIM credentials (when wired) group_login_security 200
plugin-webhooks webhooks, HTTP deliveries group_integrations_dev 115
service-datasource datasources group_integrations_dev 105
cloud-connection cloud connection group_integrations_dev 110
service-messaging Slack group_integrations_dev 140
service-messaging notification templates / preferences group_notifications 100 / 300
service-settings branding group_company 100
cloud-connection nav_marketplace_browse group_apps_ai 150
service-knowledge knowledge settings / sync states group_apps_ai 250 / 251
mcp nav_connect_agent group_apps_ai 400
  • mcp nav_connect_agent keeps its audience. It used to sit in group_overview, which was gated on manage_platform_settings; group_apps_ai is ungated, so the item now carries requiredPermissions: ['manage_platform_settings'] itself (exported as CONNECT_AGENT_SETUP_CAPABILITY from connect-ui.ts, not added to the barrel). The Account app's entry stays ungated.
  • Ruling D2: nav_approvals_inbox leaves Setup (removed from the approvals plugin's contribution). The request link was checked: the sys_approval_request record page carries the record:approval_decision panel, so a request opened from Requests is already the decision surface, and the inbox's own ?request=ID address is untouched. No link is missing, so nothing outside this surface was needed.
  • Placements not spelled out in the epic table, and my calls: SSO/SCIM go to Login & Security, knowledge to Apps & AI (before AI Model Service), queue members to Routing & Approvals with the queues.

Tests

  • New per-card files, setup-nav-groups-39058.test.ts, beside the plugin-sharing, plugin-webhooks, service-messaging, service-datasource and cloud-connection contributions. Each one runs the real SchemaRegistry fold over SETUP_APP and SETUP_NAV_CONTRIBUTIONS. It asserts that checkNavContributionGroupRenames returns nothing for the package, and it pins where each entry lands in the merged group.
  • The other packages already had a harness file for their nav contribution. Per ruling 6583487846, the #39058 pin went into that file as a top-level describe, and the file's existing assertions were retargeted to the new groups:
    • plugin-approvals: includes a D2 describe saying the inbox is not a Setup entry.
    • plugin-audit
    • plugin-auth (SCIM)
    • plugin-security (people-org assignment)
    • service-knowledge
    • service-settings: the branding test now asserts exactly what group_company holds; the old assertion was vacuous.
    • mcp
  • mcp gate pin, with ablation. connect-agent-account-nav.test.ts serves the merged Setup app through RestServer GET /api/v1/meta/:type/:name over a fixture shell.
    • A caller holding only setup.access sees the control entry alone.
    • A caller with manage_platform_settings also sees nav_connect_agent.
    • Ablation: I deleted the requiredPermissions line and 3 tests went red: the entry shape, the "cannot widen" test, and the wire test where the setup.access-only caller was served the entry. The positive case stayed green. I restored the line with git checkout HEAD -- and git diff HEAD came back empty.

Acceptance notes

This is Part of, not Fixes, because of what is left:

  1. Carve-out. service-automation/src/connector-credentials-ui.ts (PR fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144) still spells group_integrations. It is the only retired-group-id notice left on a composed boot of every first-party package (nav_connector_credentials, nav_connector_connections → group_integrations_dev). Suggested priority: 120, between webhooks at 115 and Slack at 140.
  2. Pins and test configs, granted by claim amendment 7362031530 and fixed in f4d7a5e.
    • The wire pin reads nav_connect_agent in group_apps_ai after Installed Apps and AI Model Service, and pins it absent from the top level.
    • The order pin is keyed on group_integrations_dev plus the ids in its renamedFrom, and pins the 7 ids in five tiers: datasources 105, cloud connection 110, webhooks and HTTP deliveries 115, connector credentials and connections 120, Slack 140.
    • The mcp and service-datasource vitest configs declare env: { OS_REGISTRY_LOG: 'warn' }. service-datasource gets the anchored @objectstack/platform-objects/apps alias; mcp gets an anchored @objectstack/objectql alias instead, because its tests never import platform-objects.
  3. Labels that need the translation bundles in packages/platform-objects/src/apps/translations (outside the surface):
  4. Platform-owned, not plugin, so reported only:
  5. Visible count. With every capability installed and collapsed groups closed, the count is 29: the top entry plus users_org 7, access_sharing 5, apps_ai 6, routing_approvals 6 and audit_data 4. It is 28 when the org-scoping service is absent. Against the table:
  6. Stale comments that still name retired groups, all outside the claimed surface, listed and not fixed: cloud-connection-plugin.ts:51, service-datasource admin-routes.ts:281 and README.md:73 name group_integrations; cli/scripts/check-app-nav-i18n.mjs:447 and :607 name group_overview (its lines 510–536 are self-test fixtures and need no change).
  7. Routing entries keep their audience. Assignment Rules, Queues and Queue Members move from the ungated Access & Sharing group into Routing & Approvals, which is gated on manage_platform_settings. Each entry already carried that gate itself at the merge base, so a Setup user with setup.access but without manage_platform_settings was not served them before and is not now. Measured through the meta read gate's app filter over the Setup fold at the merge base and at head, with an ungated control that does serve them. The changeset says so (94850f2). No gate was added or removed.

Verification

Two-minute check: pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/connect-agent-account-nav.test.ts. Expect 10 tests, all passing. Then delete the requiredPermissions line in connect-ui.ts and rerun; three tests go red.

Read first:

  1. packages/mcp/src/connect-ui.ts, the setup contribution hunk. This is the gate.
  2. packages/plugins/plugin-approvals/src/approvals-plugin.ts. This is the D2 removal.
  3. packages/plugins/plugin-sharing/src/sharing-plugin.ts. This is the split across two groups.

The two blocks below are on head 17ff8c3; the last two are on the patch-round heads f4d7a5e and 94850f2.

Package suites (full, under os-verify-lock)
  • plugin-approvals: 148 files, 2366 tests passed
  • plugin-audit: 118 files, 1966 tests passed
  • plugin-sharing: 81 files, 1776 passed, 11 skipped
  • plugin-webhooks: 28 files, 324 passed
  • cloud-connection: 1376 passed
  • mcp: 89 files, 1661 passed
  • service-knowledge 55/55, service-settings 16, service-messaging 9, service-datasource 1, plugin-auth scim 7/7, plugin-security nav 6/6. plugin-auth and plugin-security were narrowed to their nav files; their full suites are owed to CI.
  • Typecheck passed for all 12 packages.
  • Cross-package checks: platform-objects src/apps 955/955; objectql protocol-meta and registry-nav-contributions 107; qa/dogfood platform-app-object-entry-views 57; check:app-nav-i18n OK.
Derived gates on 17ff8c3 (dispatch-gates --commands, 83 families)
  • 78 exited 0.
  • Red, outside the surface (see Acceptance notes 2): check:registry-log-declared exit 1, check:test-source-alias exit 1.
  • NOT MEASURED, owed to CI:
    • check:dual-build-cjs-loads exit 3: PREREQUISITE NOT MET, because 42 workspace packages lack dist.
    • check:query-options-erasure and check:type-check-debt: killed at my 240s per-gate cap on the shared box (exit 124).
  • dispatch-gates --ran reconciled: 83 derived, 80 run, 3 NOT-MEASURED.
  • The real dev boot was refused by check-dev-prereqs because the workspace is not built, so boot diagnostics were measured by a composed registry fold instead (Acceptance notes 1 and 5).
Derived gates on 94850f2 (86 families)
  • 85 exited 0, including check:registry-log-declared, check:test-source-alias, check:query-options-erasure, the changeset gates and check:dual-build-cjs-loads.
  • check:type-check-debt exit 3, PREREQUISITE NOT MET (lock contention); measured exit 0 on f4d7a5e, and CI Type Check · debt ledger is green on 94850f2.
  • dispatch-gates --ran: 86 derived, 85 run, 1 NOT-MEASURED, 0 UNRUN.
  • PR check-runs on 94850f2: 39 success, 18 skipped, no red.
Patch rounds on f4d7a5e and 94850f2
  • cli pins: 2 files, 3 tests passed.
  • service-datasource full suite: 76 files, 1318 passed.
  • cloud-connection nav pin 2 passed; plugin-auth scim nav 7 passed.
  • The mcp full suite and the plugin-sharing nav pin were NOT MEASURED locally after lock queue time-outs; CI Test Core 12/12 is green on both heads.
  • 94850f2 changes only the changeset (one audience sentence).

🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 12 package(s): @objectstack/cloud-connection, @objectstack/mcp, @objectstack/plugin-approvals, @objectstack/plugin-audit, @objectstack/plugin-auth, @objectstack/plugin-security, @objectstack/plugin-sharing, @objectstack/plugin-webhooks, @objectstack/service-datasource, @objectstack/service-knowledge, @objectstack/service-messaging, @objectstack/service-settings, touching 35 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/mcp/vitest.config.ts, packages/services/service-datasource/vitest.config.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

38 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 69061e8732a01030652cbc8cbfca678028eb4adf.

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

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/mcp/vitest.config.ts, packages/services/service-datasource/vitest.config.ts) — pages documenting those are invisible to this run
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 61 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 69061e8732a01030652cbc8cbfca678028eb4adf → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 8d85146cfea56add79d1706875233c64ef55d904 — the merge of head 94850f2109a2dd6c81b3d054ae8cfa03c0e01101 into base 69061e8732a01030652cbc8cbfca678028eb4adf, 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 8d85146cfea56add79d1706875233c64ef55d904 && git checkout 8d85146cfea56add79d1706875233c64ef55d904
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 69061e8732a01030652cbc8cbfca678028eb4adf 94850f2109a2dd6c81b3d054ae8cfa03c0e01101 && git checkout -B drift-repro 69061e8732a01030652cbc8cbfca678028eb4adf && git merge --no-ff 94850f2109a2dd6c81b3d054ae8cfa03c0e01101

node scripts/docs-audit/affected-docs.mjs --json 69061e8732a01030652cbc8cbfca678028eb4adf

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

… new groups (#39058)

The two cli pins encoded the placement this card changed: Connect an AI
Assistant is served in Apps & AI after AI Model Service, and the
Integrations & Developer order pin now orders the five capability
contributors by their own tiers (datasources, cloud connection, webhooks,
connectors, Slack), matching the served anchor and its renamedFrom ids.

The mcp and service-datasource vitest configs declare OS_REGISTRY_LOG and
the anchored source aliases the new pins import; the datasource, auth and
cloud pins pay their dynamic imports at collection or read the aliased root.

Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 2, 2026
…ence (#39058)

Assignment Rules, Queues and Queue Members move from the ungated Access &
Sharing group into Routing & Approvals, which is gated on
manage_platform_settings. Each entry already carries that gate itself, so
who sees them does not change. This was measured through the meta read
gate's app filter, folding the merge-base contribution and the head
contribution, with an ungated control.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

L1 ACCEPT · PR #39202 (#39058, epic #39050) · head 94850f2109a2dd6c81b3d054ae8cfa03c0e01101 · read 2026-12-03T02:04Z

席位核对

ACCEPT · repo:objectstack@os-justin · head 94850f2109a2dd6c81b3d054ae8cfa03c0e01101

  1. Shape. Part of #39058 is right. The plugin-contributed Setup entries land directly in the ten new groups. nav_approvals_inbox leaves Setup (ruling D2). nav_connect_agent moves to group_apps_ai and keeps its manage_platform_settings gate. What is left (the connector-credentials one-liner behind fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144, the labels on Setup navigation: the label renames and the retired approvals-inbox keys owed by #39058 land in the app translation bundles (#39050) #39204, the stale comments) is listed in Acceptance notes.
  2. The seat's L1 finding is answered and closed. The seat read that Assignment Rules, Queues and Queue Members lose audience by moving into the gated Routing & Approvals group. The dev measured through the serve-time app filter over the real Setup fold, at the merge base and at head, with an ungated control. Each entry already carried manage_platform_settings itself, so a setup.access-only caller is served none of the three, before and after. The changeset now says so, and the static pin in plugin-sharing/src/setup-nav-groups-39058.test.ts covers both the group gate and the item gates.
  3. The 权限集 row. Ruled A by the maintainer (recorded on Plugin-contributed Setup items target the new group ids; 「审批中心」 is no longer a Setup entry (#39050) #39058 and 专题:系统设置左侧导航改为两层 10 组——按使用频率排序、一次性设置默认折叠、分组 id 全部换新 #39050). This PR keeps nav_permission_sets retired, and the visible count of 29 (28 without the org-scoping service) is the accepted figure.
  4. Claim amendment. The four out-of-surface files (two cli pins, the mcp and service-datasource vitest configs) are granted by amendment 7362031530 and fixed in f4d7a5e. The pins were rewritten only as far as the moves require.
  5. Body. The dev's six pr_body_edits and the ruling are applied, and the patch read back identical.
  6. Contract faces. None. Clause-②: no, Metadata-protocol: none, no packages/spec/src/** file, no governed path. No L2 is owed; this is CI plus the seat's own read.
  7. Gates. check-governed-merges: NOT governed, 1272 lines. The dev reconciled 86 derived families (85 at exit 0; check:type-check-debt NOT-MEASURED for lock contention, with CI Type Check · debt ledger green). The mcp full suite and the plugin-sharing pin were not run locally; CI Test Core 12/12 covers them at this head.

Clause-②: no · Metadata-protocol: none

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 3, 2026 02:04
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge December 3, 2026 02:04
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit eb8895f Dec 3, 2026
62 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-39058-plugin-items-new-groups branch December 3, 2026 02:35
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 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.

2 participants