Repository navigation
feat(slack): enable Enterprise Grid identity, DMs, routing, actions, approvals, and presence - #121373
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
fd17443 to
9cceab3
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 2:56 AM ET / 06:56 UTC. ClawSweeper reviewWhat this changesThis PR replaces Slack’s manual Enterprise Grid setting with runtime identity detection and carries workspace scope through Slack routing, delivery, pairing, actions, approvals, and presence. Merge readinessKeep open for maintainer review. The current head appears to address the prior standalone-send blocker, but its real Slack proof covers an earlier head and exact-head source hydration was unavailable locally; the maintainer label also requires human handling. Priority: P1 Review scores
Verification
How this fits togetherThe bundled Slack plugin turns Slack events and detached sends into OpenClaw agent runs and outbound messages. This change records authenticated installation identity and uses workspace scope to avoid treating Enterprise Grid IDs as globally unique. flowchart LR
A[Slack auth and events] --> B[Installation identity]
B --> C[Workspace scope]
C --> D[Routing and policy]
C --> E[Delivery and actions]
D --> F[Agent runs]
E --> G[Slack messages]
Decision needed
Why: The PR intentionally expands supported Enterprise events, actions, pairing, approvals, and presence while retiring a documented configuration mode; that compatibility and product-scope choice needs maintainer intent. Before merge
Agent review detailsSecurityNone. PR surfaceSource +343, Tests +698, Docs +8, Generated 0. Total +1049 across 69 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep installation identity owned by the Slack plugin, retain Doctor migration for the retired setting, and obtain current-head proof for Enterprise delivery, degraded failure, and standalone workspace sends before landing. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR; the contributor supplied credible Slack behavior evidence for a preceding head, but not for the final head. Is this the best way to solve the issue? Unclear: runtime-owned Slack identity is the right apparent owner boundary, but the exact-head code and its upgrade behavior could not be completely inspected from this partial checkout. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6b365fa5d3c9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
9cceab3 to
fcd7211
Compare
|
@clawsweeper re-review Proof is pending. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Anonymous Grid presence and DM-pairing integration proofThis proof was captured against the immediately preceding head revision of this PR with Codex Runtime checks:
Summary for that revision: 12 passed, 0 failed. No workspace, organization, team, channel, app, bot, user, message, thread, run, host, private-link, pairing-code, commit, or internal-PR identifiers are included in this proof. |
9c8a8f9 to
dd32f7a
Compare
…, actions, approvals, and presence (#121373)
…rprise-setting # Conflicts: # docs/.generated/plugin-sdk-api-baseline.sha256
…rprise-setting # Conflicts: # docs/.generated/plugin-sdk-api-baseline.sha256
…approvals, and presence (openclaw#121373) * refactor(slack): detect Enterprise Grid installs at runtime * fix(slack): preserve enterprise bot identity * style(slack): format enterprise identity test * fix(slack): scope enterprise config by workspace * fix(slack): preserve qualified binding casing * feat(slack): enable enterprise presence polling * fix(slack): normalize enterprise binding accounts * fix(slack): require workspace-scoped Grid targets * docs(slack): document Enterprise policy target forms * fix(slack): preserve Grid pairing workspace scope * refactor(slack): simplify scoped target formatting * fix(slack): repair Enterprise Grid CI checks * chore: refresh generated Slack metadata * refactor(slack): simplify optional workspace scope * test(slack): infer installation state handle types * chore: resolve plugin SDK baseline conflict * fix(ci): regenerate plugin SDK API baseline on Linux * fix(slack): allow standalone workspace sends --------- Co-authored-by: Sarah Fortune <[email protected]>
What Problem This Solves
Slack Enterprise Grid org-wide installations need workspace-scoped identity and routing without relying on the retired
enterpriseOrgInstallsetting. Bare Slack user and channel IDs are not globally unique across a Grid organization, so detached operations and pairing requests must fail closed or retain an authoritative workspace.Implemented In This PR
auth.test, preserves bot and user identity, and recovers cleanly after temporary identity lookup failures.enterpriseOrgInstallfrom the Slack schema, types, UI hints, generated metadata, and docs;openclaw doctor --fixremoves the retired root or account key.disabled,open,allowlist, and workspace-qualifiedpairing. Pending pairing identities are qualified by workspace while retaining the raw Slack user ID for display and notification.match.teamIdand workspace-qualified channel and user peers.Safety Boundaries
team:<team-id>:channel:<channel-id>orteam:<team-id>:user:<user-id>targets.Evidence
auth.testverification confirmed an org-wide credential returns Enterprise, bot, and user identity without publishing identifier values.AI-assisted: Codex implemented and reviewed this change. I understand the behavior and changes in this PR.