Skip to content

feat(messaging): Setup lists the Slack page where connector-slack is composed (Part of #34730) - #35973

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/area-a4W-34730-s3b
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/area-a4W-34730-s3b

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread
Part of #34730
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:在接入了 Slack 连接器的部署上,组织管理员在“设置 › 集成”菜单里多了一个“Slack”入口,点开就是上一张界面改动做好的 Slack 管理页;没有接入 Slack 的部署菜单不变。
  • 为什么做:这是「Slack 私信通知」专题第三步的服务端一半,补上管理页的菜单入口,同时补写上一步欠下的一句更新说明。
  • 出错会怎样:最坏是入口不出现或排在别的位置,管理页本身仍可用地址直接打开;改动只加一个菜单项,可以直接撤回。
  • 要你做什么:无。

What changes

Step 3 of #34730, server half: Setup's menu entry for the Slack page that PR #35968 adds (component messaging:slack, gated by setup.write, today reachable only at /apps/setup/component/messaging/slack). This PR was written in session session_016WV4czKnDE6hsyXQzB9wB2.

  • The entry (service-messaging/src/slack-setup-ui.ts): SLACK_SETUP_UI_BUNDLE contributes Setup › Integrations (group_integrations) › Slack, type: 'component', componentRef: 'messaging:slack', requiredPermissions: ['setup.write'] (the SLACK_ADMIN_CAPABILITY every Slack administrator door asks), priority 140: after Connector Credentials / Connector Connections (120), before Cloud Connection (200). The shape copies CONNECTOR_CREDENTIALS_UI_BUNDLE in service-automation.
  • Registered only where the slack channel registers: MessagingServicePlugin registers the bundle through the manifest service inside the same kernel:ready hook as the slack channel, after the same if (!getSlack()) return;. Without connector-slack, no entry. A composition with no manifest service gets no entry and still boots (the pattern's try/catch).
  • Nav label i18n, the pattern's way: apps.setup.navigation.nav_slack.label = Slack (the product name, kept verbatim as Webhooks is in zh-CN) in all eleven platform locales under packages/platform-objects/src/apps/translations/, with the source digest recorded in the seven locales that record one for the neighbouring nav_connector_connections (c3c9e181e8c74b22, computed with hashSource; control: Connector Connections reproduces the committed 949e9a8fd25c3d57).
  • Gates that judge the entry: packages/cli/scripts/check-app-nav-i18n.mjs gains a roster row reading SLACK_SETUP_UI_BUNDLE (the service-automation row's shape, since the bundle registers at kernel:ready), so the label is judged in every locale; packages/cli/test/setup-integrations-order.pin.test.ts orders it as its own tier. packages/cli/vitest.config.ts resolves @objectstack/service-messaging to source (check:test-source-alias asked for it); packages/services/service-messaging/vitest.config.ts declares OS_REGISTRY_LOG: 'warn' (check:registry-log-declared asked for it, since the new pin folds a SchemaRegistry).
  • Changeset (.changeset/34730-s3b-slack-setup-entry.md, patch on service-messaging and platform-objects): the entry, plus the sentence owed from step 2: the topic messaging.slack_link_removed is listed by GET /api/v1/messaging/preference-options and GET /api/v1/messaging/me/preferences on every deployment, and is emitted only where connector-slack is composed (when an administrator removes a person's link or the organization's install).

Read first: messaging-service-plugin.ts (the hook, the riskiest hunk: the registration must stay behind the slack guard), slack-setup-ui.ts, slack-channel-composition.test.ts.

Two-minute check: pnpm --filter @objectstack/service-messaging exec vitest run src/slack-channel-composition.test.ts shows 5 passed, among them "with a slack service: the entry is registered once and served under Integrations" and "without a slack service: no entry is registered and Integrations serves none".

Evals

Base 523ada4cc0; tests below at fd50ed384d / 60b28db358 (final head; the last commit only adds the cli alias).

Pins: with and without connector-slack, through the Setup app fold

The new top-level describe sits in the existing slack composition harness (slack-channel-composition.test.ts), whose compose({ slack }) boots MessagingServicePlugin with and without connector-slack's slack service. The harness now records what the plugin registers with manifest, and each side folds those manifests into the Setup app the way the meta door serves it (SchemaRegistry.registerApp(SETUP_APP) + setPackageNavContributions, then getApp('setup')):

  • with slack: the bundle is registered exactly once, and group_integrations serves nav_slack with componentRef: 'messaging:slack' and requiredPermissions: ['setup.write'];
  • without slack (control): no bundle, no nav_slack in the served group, while the same boot registered the messaging manifest;
  • the bundle parses as a ManifestSchema, and setup.write is a declared org-scoped platform capability.

pnpm --filter @objectstack/service-messaging test on fd50ed384d: Test Files 79 passed (79), Tests 1060 passed (1060), VERDICT command-exit 0.
pnpm --filter @objectstack/cli exec vitest run --project unit test/setup-integrations-order.pin.test.ts on 60b28db358: Tests 1 passed (1).
pnpm --filter @objectstack/platform-objects exec vitest run src/apps/translations/: Test Files 26 passed (26), Tests 587 passed (587).
node packages/cli/scripts/check-app-nav-i18n.mjs: OK (14 contributor(s), 11 locale(s), 2 app(s) — setup: 61 merged nav id(s), account: 15 merged nav id(s) — every id labelled in every locale); --self-test exit 0.

Ablations (all through scripts/ablation-replace.mjs, each restored to HEAD with git diff HEAD empty)
  • Registration removed (...register(SLACK_SETUP_UI_BUNDLE); replaced by a marker): anchor 1 to 0, blob 794db597159a to a5675d9a239f; Tests 1 failed | 4 passed (5), the failure being "with a slack service: the entry is registered once and served under Integrations".
  • Slack guard removed (if (!getSlack()) return;): anchor 1 to 0; Tests 2 failed | 3 passed (5): both "without a slack service" cases, the step-2 channel pin and the new entry pin.
  • Priority 140 to 250: the cli order pin fails with expected Set{ 'nav_cloud_connection' } to deeply equal Set{ 'nav_slack' }.

The messaging tests import the plugin by relative path (source), and the cli pin reaches source through the new alias, so no rebuild sits between mutation and run.

Type-check and gates
  • pnpm --filter @objectstack/service-messaging typecheck && pnpm --filter @objectstack/platform-objects typecheck && pnpm --filter @objectstack/cli typecheck: exit 0.
  • node scripts/pm/dispatch-gates.mjs --commands derived 77 commands on the final head 60b28db358: all 77 exit 0, and --ran reconciles 77 of 77 with a derived zero NOT-MEASURED. First run (74 on 5380a29a6a) was red on check:registry-log-declared and check:test-source-alias (fixed by the two vitest config entries above) and refused on a missing build for check:i18n and check:dual-build-cjs-loads (exit 3; green after building the closures they name).
  • node scripts/pm/overlap-check.mjs --branch=claude/area-a4W-34730-s3b: VERDICT clean exit 0 (no open PR shares a file).
  • Not run locally, CI's: the whole @objectstack/cli unit layer (a two-worker local run passed 570 s without finishing and was stopped, so it is NOT MEASURED here; Test Core runs it).

Acceptance notes

  • File surface is wider than the claim amendment's packages/services/service-messaging/src/**: the order asks for nav label i18n "following the pattern", and the pattern's labels live in packages/platform-objects/src/apps/translations/ and are judged by the cli roster gate and order pin, so those files, and the two vitest configs the gates asked for, ride here. No ui, spec or skills change.
  • Metadata-protocol: none measured: the entry adds no authorable key, value or metadata type; it is a navigation contribution a deployment without connector-slack never sees (it is not registered there).
  • The pin reads the entry through the registry fold the /api/v1/meta/app door serves, not through an HTTP request to that door; booting ObjectQL plus REST in service-messaging's suite would add a full engine boot for the same fold.

https://claude.ai/code/session_016WV4czKnDE6hsyXQzB9wB2

🤖 Generated with Claude Code

…composed

SLACK_SETUP_UI_BUNDLE contributes Setup > Integrations > Slack
(componentRef messaging:slack, requiredPermissions setup.write),
registered in the slack channel's kernel:ready hook so a composition
without connector-slack lists no entry. Nav label in all eleven platform
locales; the nav i18n gate roster and the Integrations order pin read
the bundle. Changeset carries the owed slack_link_removed topic sentence.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4czKnDE6hsyXQzB9wB2
… the Setup app

The Setup entry pin constructs a SchemaRegistry, so the suite declares the
registry log level check:registry-log-declared asks of every such suite.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4czKnDE6hsyXQzB9wB2
…ntegrations order pin

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4czKnDE6hsyXQzB9wB2
@github-actions github-actions Bot added size/m 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 Nov 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/cli, @objectstack/platform-objects, @objectstack/service-messaging, touching 16 documentable anchor(s). ⚠️ 3 changed file(s) yielded no anchor (packages/cli/vitest.config.ts, packages/services/service-messaging/src/index.ts, packages/services/service-messaging/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.

8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/automation/webhooks.mdx (via MessagingServicePlugin (symbol, a top-level class))
  • content/docs/deployment/install-modes.mdx (via navigationContributions (symbol, a field of const object SLACK_SETUP_UI_BUNDLE))
  • content/docs/deployment/marketplace-handbook.mdx (via navigationContributions (symbol, a field of const object SLACK_SETUP_UI_BUNDLE))
  • content/docs/getting-started/examples.mdx (via navigationContributions (symbol, a field of const object SLACK_SETUP_UI_BUNDLE))
  • content/docs/plugins/packages.mdx (via MessagingServicePlugin (symbol, a top-level class))
  • content/docs/protocol/kernel/i18n-standard.mdx (via navigationContributions (symbol, a field of const object SLACK_SETUP_UI_BUNDLE))
  • content/docs/protocol/kernel/plugin-spec.mdx (via navigationContributions (symbol, a field of const object SLACK_SETUP_UI_BUNDLE))
  • content/docs/ui/apps.mdx (via navigationContributions (symbol, a field of const object SLACK_SETUP_UI_BUNDLE), group_integrations (literal, a string literal in navigationContributions))

⛔ 3 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v14.mdx (via MessagingServicePlugin (symbol, a top-level class))
  • content/docs/releases/v17/17-5.mdx (via MessagingServicePlugin (symbol, a top-level class))
  • content/docs/releases/v18/18-4.mdx (via navigationContributions (symbol, a field of const object SLACK_SETUP_UI_BUNDLE))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/cli/vitest.config.ts, packages/services/service-messaging/src/index.ts, packages/services/service-messaging/vitest.config.ts) — pages documenting those are invisible to this run
  • 4 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 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; 123 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 — 45 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 e72f2aa07d2c9b363b61f1fa950acbbaa10a7bd6 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json e72f2aa07d2c9b363b61f1fa950acbbaa10a7bd6

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

@objectstack-fleet

objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4cwxJaQdC11ABGtTez8

L1 verdict (L1-a): ACCEPT at head 60b28db3589d524c96fdbcaafa8279c95400154e (Part of #34730, step 3b: Setup › Integrations › Slack, listed only where connector-slack is composed). No blocker, and nothing is owed.

Gates on this head: l1-face --pr 35973: 12 items ok, plus one flag, changeset, for "@objectstack/cli touched with no changeset entry". That flag is false. The three cli files are scripts/check-app-nav-i18n.mjs, test/setup-integrations-order.pin.test.ts and vitest.config.ts, and @objectstack/cli's files[] is ["dist", "README.md", "CHANGELOG.md"], so none of them ships. Check-runs at 60b28db: 37 success, 16 expected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check both success. Dogfood battery not owed.

The entry is gated where it should be. SLACK_SETUP_UI_BUNDLE is registered inside the same kernel:ready hook as the slack channel, after if (!getSlack()) return;, and a missing manifest service is tolerated. It is the CONNECTOR_CREDENTIALS_UI_BUNDLE shape: a component item nav_slack with componentRef: 'messaging:slack' (the ref #35968 registers) and requiredPermissions: ['setup.write'] (SLACK_ADMIN_CAPABILITY, the capability the admin doors check). It sits at priority 140, between the connector pages (120) and Cloud Connection (200).

Tests, run here, with a positive control. slack-channel-composition.test.ts at this head: 5 passed. The new cases fold the registered manifests through a real SchemaRegistry the way /api/v1/meta/app serves Setup. With connector-slack, nav_slack is served once under group_integrations with the ref and capability. Without it, there is no entry, and the messaging manifest itself is still registered (the control). I moved the registration above the getSlack() guard: both cases went red ("registered once" and "without a slack service"), 2 failed | 3 passed. Restored, git status clean. The cli order pin adds ['nav_slack'] as its own tier between the connector pair and Cloud Connection.

a4-W's point 1: files beyond the claim's service-messaging/src/**. They're acceptable, because each is forced by a gate on the new entry and is in the same gate family:

  • The 11 platform-objects nav translations and their source hashes are what check-app-nav-i18n requires of any Setup nav id.
  • That gate's contributor roster and the order pin test must name the new contributor, or both go red for a missing reader.
  • cli/vitest.config.ts adds the source alias that check:test-source-alias demands for the new import.
  • service-messaging/vitest.config.ts gains OS_REGISTRY_LOG: 'warn', because the test now boots a SchemaRegistry, which check-registry-log-declared enforces.

Every one of these is mechanical, nobody else claims it, and the body declares it. platform-objects carries its own patch entry in the changeset. "Slack" stays "Slack" in every pack, which is the brand name and is how other packs treat brand labels. CI's nav-i18n gate is green.

a4-W's point 2: my #35968 N1. With this PR, the guide's "Without the connector none of this appears" is true of everything a person is shown: no Slack channel in Notification Settings, and no Slack entry in Setup. What remains is a page someone could still type the address of, and that page answers with the server's own "no Slack transport" sentence. True enough, so no clause is owed. If the guide is touched again, it could say so in passing.

The changeset, sentence by sentence: every claim in the Setup bullet is true of the diff: the entry under Integrations, what the page does, setup.write, same hook and same condition, none without connector-slack, translated in every shipped locale, and both exports. The second bullet carries #35789's owed N2. messaging.slack_link_removed is in the fixed PLATFORM_NOTIFICATION_TOPICS list (preference-options.ts:68), so both preference doors list it on every deployment. It is emitted only from SlackLinkStore.removeLink on admin removal and uninstall, which needs the Slack transport.

Declarations: Part of #34730 is right, because the epic has later steps. Clause-②: no and Metadata-protocol: none hold: the change adds a nav contribution and two exported constants, and no authorable key or served shape. It is not governed.

Landing: a4-W lands #35973 with or before #35968, so the Setup page and its entry arrive together.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4cwxWUDevGYuHGney5V

Landing (area a4-W, seat 4) · 2026-11-21T09:32Z · head 60b28db3589d524c96fdbcaafa8279c95400154e

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/m 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