Repository navigation
fix: restore member and emoji reads in official Slack installs - #147657
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 14, 2026, 12:21 PM ET / 16:21 UTC (Revision 7). ClawSweeper reviewWhat this changesThe PR enables existing requester-profile and workspace-emoji reads for verified official Slack installations, with authorization regression coverage and documentation. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, focused fix: current main still omits Slack’s two metadata reads from official-install admission. No actionable correctness or security defect was found. The maintainer-authored PR is also protected from automatic closure. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s message tool sends Slack actions through a host authorization gate and then Slack’s account, requester, and workspace checks. The Slack client performs the permitted API request, while shared lifetime checks prevent revoked operations from returning results. flowchart TD
A[Message tool request] --> B[Official registration and live authority]
B --> C{Eligible Slack read}
C -->|Yes| D[Requester and workspace checks]
C -->|No| E[Exact conversation restriction]
D --> F[Slack API request]
F --> G[Live authority check before result]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +388, Docs +11. Total +399 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use Slack’s existing read-authority declaration and provider checks, preserving the established coordinated core/plugin compatibility contract. Do we have a high-confidence way to reproduce the issue? Yes, from source: a targetless metadata request through an official installed Slack registration falls into the exact-conversation restriction because its action is absent from Slack’s declaration. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. Extending the existing declaration is the narrow repair; requester policy, workspace selection, transport fencing, and result handling retain their established owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 50090f5df4e9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
fdebc20 to
338836f
Compare
06ea1ba to
c555f9f
Compare
c555f9f to
eb5f893
Compare
|
Fixed: official Slack installs now support requester member lookups and bounded workspace emoji lists under the existing account and action restrictions. |
…law#147657) Restore requester member lookups and bounded workspace emoji lists for official Slack installations through the existing read-authority checks. Refs openclaw#115367.
Related: #115367
Builds on #143341 and the host action support landed in #147658.
What Problem This Solves
Verified official Slack installations reject the existing targetless
member-infoandemoji-listactions before Slack's access checks run. Slack's explicit read-authority list omits these two actions, so the dispatcher applies a conversation-target restriction to requests that do not need a channel target.User Impact
Official npm and ClawHub Slack installations can look up the trusted requester and list the current workspace's emoji. An explicit
userIdmust still identify that requester on the same account. Emoji discovery uses the trusted workspace and retains its optional positive limit, default and maximum of 100, and shortcode/alias output.Existing action gates, Enterprise workspace checks, read-token selection, direct-operator behavior, and caller/plugin revocation checks remain in place. Older adapters and unverified registrations retain their existing restrictions.
Why This Change Was Made
Add
member-infoandemoji-listto Slack's existingreadAuthorityActionsdeclaration. Main already supplies the host classification through #147658; this patch preserves that complete landed host implementation. Slack continues to own requester, account, workspace, and API policy. The access-control and SDK docs describe the supported actions and limits.Evidence
The original remote comparison reproduced 11 admission failures with five restriction/compatibility controls passing. The repaired path passed 256 focused cases across registered message-tool integration, Slack runtime/tool/ingress behavior, and dispatcher registration. These exercise the real Slack adapter and WebClient with synthetic HTTP fixtures, including requester defaults, named accounts, workspace selection, emoji bounds, denials before traffic, and revoked-authority result/error suppression.
Fresh npm and official ClawHub installs passed all 16 metadata scenarios: 26 action calls and 16 loopback Slack API requests. All three native core/Slack artifact-production stages and all 27 installed-consumer stages passed. The checks verified the installed SDK, compiled entry points, official install provenance, requester/account restrictions, bounded emoji results, and caller/plugin revocation. Both fixture processes stopped cleanly. Shared published-driver upgrade and transport qualification from #143341 remains valid after input checks.
After incorporating the landed Discord support, all 51 registered-entry cases passed in a fresh native remote run. The subsequent Matrix integration changes SDK documentation context only; Slack implementation and tests remain byte-identical. Twelve remaining selected commands and the nine previously uncovered tooling files passed, including 298 test cases across eleven files. The final changed-path preflight passed in 16.6 seconds. Artifact and source identities remain attached to their actual tested revisions; range and input checks establish reuse on this head.
The current replay incorporates the landed database-fixture repair from #148223 and preserves the Mattermost SDK documentation from #147660. Slack implementation, tests, and access-control documentation retain their proven bytes. The documentation conflict resolution passed the changed-path preflight in 19.1 seconds. Final CI and automated review are being refreshed for this head.