Repository navigation
fix(setup): capability Setup entries name the new group ids (#39058) - #39202
Conversation
…9058) Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
…9058) Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 12 package(s): 38 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 14 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 61 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 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
|
… 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>
…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
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 L1 ACCEPT · PR #39202 (#39058, epic #39050) · head 席位核对ACCEPT · repo:objectstack@os-justin · head
|
Part of #39058
Clause-②: no
Metadata-protocol: none
维护者速读
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_renamednotice on boot. Where a retired group was split, each entry names its group explicitly:nav_connect_agentkeeps its audience. It used to sit ingroup_overview, which was gated onmanage_platform_settings;group_apps_aiis ungated, so the item now carriesrequiredPermissions: ['manage_platform_settings']itself (exported asCONNECT_AGENT_SETUP_CAPABILITYfromconnect-ui.ts, not added to the barrel). The Account app's entry stays ungated.nav_approvals_inboxleaves Setup (removed from the approvals plugin's contribution). The request link was checked: thesys_approval_requestrecord page carries therecord:approval_decisionpanel, so a request opened from Requests is already the decision surface, and the inbox's own?request=IDaddress is untouched. No link is missing, so nothing outside this surface was needed.Tests
setup-nav-groups-39058.test.ts, beside the plugin-sharing, plugin-webhooks, service-messaging, service-datasource and cloud-connection contributions. Each one runs the realSchemaRegistryfold overSETUP_APPandSETUP_NAV_CONTRIBUTIONS. It asserts thatcheckNavContributionGroupRenamesreturns nothing for the package, and it pins where each entry lands in the merged group.#39058pin went into that file as a top-level describe, and the file's existing assertions were retargeted to the new groups:connect-agent-account-nav.test.tsserves the merged Setup app through RestServerGET /api/v1/meta/:type/:nameover a fixture shell.setup.accesssees the control entry alone.manage_platform_settingsalso seesnav_connect_agent.requiredPermissionsline 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 withgit checkout HEAD --andgit diff HEADcame back empty.Acceptance notes
This is
Part of, notFixes, because of what is left: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 spellsgroup_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.nav_connect_agentingroup_apps_aiafter Installed Apps and AI Model Service, and pins it absent from the top level.group_integrations_devplus the ids in itsrenamedFrom, 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.env: { OS_REGISTRY_LOG: 'warn' }. service-datasource gets the anchored@objectstack/platform-objects/appsalias; mcp gets an anchored@objectstack/objectqlalias instead, because its tests never import platform-objects.packages/platform-objects/src/apps/translations(outside the surface):nav_approvals_inboxtranslation keys are now dead. Their tombstone row also belongs to that change.nav_system_overview, owned by the platform shell.nav_permission_setsretired as on main. The maintainer ruled A on analysis 7362174445 (ruling recorded on Plugin-contributed Setup items target the new group ids; 「审批中心」 is no longer a Setup entry (#39050) #39058): it is carried by 岗位与权限, and its search alias rides Setup navigation: the label renames and the retired approvals-inbox keys owed by #39058 land in the app translation bundles (#39050) #39204.nav_organization, which Platform-owned Setup items sit in their new groups under the new names; every old name stays searchable (#39050) #39057 kept.cloud-connection-plugin.ts:51, service-datasourceadmin-routes.ts:281andREADME.md:73namegroup_integrations;cli/scripts/check-app-nav-i18n.mjs:447and:607namegroup_overview(its lines 510–536 are self-test fixtures and need no change).manage_platform_settings. Each entry already carried that gate itself at the merge base, so a Setup user withsetup.accessbut withoutmanage_platform_settingswas 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 therequiredPermissionsline inconnect-ui.tsand rerun; three tests go red.Read first:
packages/mcp/src/connect-ui.ts, the setup contribution hunk. This is the gate.packages/plugins/plugin-approvals/src/approvals-plugin.ts. This is the D2 removal.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)
src/apps955/955; objectql protocol-meta and registry-nav-contributions 107; qa/dogfood platform-app-object-entry-views 57;check:app-nav-i18nOK.Derived gates on 17ff8c3 (dispatch-gates --commands, 83 families)
check:registry-log-declaredexit 1,check:test-source-aliasexit 1.check:dual-build-cjs-loadsexit 3: PREREQUISITE NOT MET, because 42 workspace packages lackdist.check:query-options-erasureandcheck:type-check-debt: killed at my 240s per-gate cap on the shared box (exit 124).dispatch-gates --ranreconciled: 83 derived, 80 run, 3 NOT-MEASURED.check-dev-prereqsbecause 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)
check:registry-log-declared,check:test-source-alias,check:query-options-erasure, the changeset gates andcheck:dual-build-cjs-loads.check:type-check-debtexit 3, PREREQUISITE NOT MET (lock contention); measured exit 0 on f4d7a5e, and CIType Check · debt ledgeris green on 94850f2.dispatch-gates --ran: 86 derived, 85 run, 1 NOT-MEASURED, 0 UNRUN.Patch rounds on f4d7a5e and 94850f2
🤖 Generated with Claude Code
https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2