Skip to content

fix: restore member and emoji reads in official Slack installs - #147657

Merged
shakkernerd merged 1 commit into
openclaw:mainfrom
shakkernerd:fix/slack-metadata-reads
Sep 14, 2026
Merged

shakkernerd merged 1 commit into
openclaw:mainfrom
shakkernerd:fix/slack-metadata-reads

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

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-info and emoji-list actions 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 userId must 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-info and emoji-list to Slack's existing readAuthorityActions declaration. 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.

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: slack Channel integration: slack size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 14, 2026, 12:21 PM ET / 16:21 UTC (Revision 7).

ClawSweeper review

What this changes

The 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
Reviewed head: eb5f893272598e1baa6b30ffafdb1f2c1a64e0ca

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow repair with meaningful authorization and installed-consumer evidence; no actionable patch defect was identified.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Retained remote evidence reports real installed Slack adapters and WebClient requests against isolated HTTP fixtures, including allowed metadata reads, forbidden-member/account rejection before traffic, and caller/plugin revocation. The inspected production-boundary tests support those scenarios, and GitHub blob checks confirm their preservation from the prior reviewed head. This is boundary proof, not authenticated Slack rollout evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Retained remote evidence reports real installed Slack adapters and WebClient requests against isolated HTTP fixtures, including allowed metadata reads, forbidden-member/account rejection before traffic, and caller/plugin revocation. The inspected production-boundary tests support those scenarios, and GitHub blob checks confirm their preservation from the prior reviewed head. This is boundary proof, not authenticated Slack rollout evidence.
Evidence reviewed 9 items Fix remains necessary on current main: Fetched main declares only read, reactions, and list-pins. The reviewed branch adds member-info and emoji-list to that existing declaration; the host already classifies both as eligible fenced reads.
Existing provider authorization remains authoritative: Member information requires the current requester on the same account. Both metadata handlers retain action gates, trusted workspace resolution, Enterprise checks, and read-token selection; emoji output remains bounded to 100.
Authority reaches the final request and completion: Slack metadata uses operation-local lookup clients. Their fetch wrapper captures and checks read authority before traffic; the shared authority scope also rejects stale results and errors. Registration authority checks the live lifecycle and exact registered instance.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

  • Resolve merge risk (P1) - Two current-head core-test shards fail, but generic annotations and blocked log access leave their cause unattributed.
Agent review details

Security

None.

PR surface

Source 0, Tests +388, Docs +11. Total +399 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 2 418 30 +388
Docs 2 13 2 +11
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 432 33 +399

Review metrics

Metric Value Why it matters
Authorization scope 2 existing reads opted in; 0 new actions or settings The change uses the established host contract without adding another authorization mechanism.
Production versus regression coverage Production net 0 lines; tests net +388 lines Production remains a declaration change; added coverage exercises admission and final-request boundaries.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Use Slack’s existing read-authority declaration and provider checks, preserving the established coordinated core/plugin compatibility contract.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P2: Restores two bounded metadata operations for official Slack installations without changing message delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Retained remote evidence reports real installed Slack adapters and WebClient requests against isolated HTTP fixtures, including allowed metadata reads, forbidden-member/account rejection before traffic, and caller/plugin revocation. The inspected production-boundary tests support those scenarios, and GitHub blob checks confirm their preservation from the prior reviewed head. This is boundary proof, not authenticated Slack rollout evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. Retained remote evidence reports real installed Slack adapters and WebClient requests against isolated HTTP fixtures, including allowed metadata reads, forbidden-member/account rejection before traffic, and caller/plugin revocation. The inspected production-boundary tests support those scenarios, and GitHub blob checks confirm their preservation from the prior reviewed head. This is boundary proof, not authenticated Slack rollout evidence.

Evidence

What I checked:

  • Fix remains necessary on current main: Fetched main declares only read, reactions, and list-pins. The reviewed branch adds member-info and emoji-list to that existing declaration; the host already classifies both as eligible fenced reads. (extensions/slack/src/channel-actions.ts:66, 50090f5df4e9)
  • Existing provider authorization remains authoritative: Member information requires the current requester on the same account. Both metadata handlers retain action gates, trusted workspace resolution, Enterprise checks, and read-token selection; emoji output remains bounded to 100. (extensions/slack/src/action-runtime.ts:1004, eb5f89327259)
  • Authority reaches the final request and completion: Slack metadata uses operation-local lookup clients. Their fetch wrapper captures and checks read authority before traffic; the shared authority scope also rejects stale results and errors. Registration authority checks the live lifecycle and exact registered instance. (extensions/slack/src/client-options.ts:99, eb5f89327259)
  • Registered production-boundary coverage: The complete integration file exercises the real message tool, Slack adapter, WebClient, and loopback HTTP server. Added cases assert requester and workspace selection, zero requests for forbidden members/accounts and disabled gates, legacy restrictions, pre-request revocation, and stale-result/error suppression. (test/channel-message-read-authority.integration.test.ts:580, eb5f89327259)
  • Retained installed-consumer evidence: The supplied PR body at context sourceRevision c5b25051bc5119f09205ed9d41fbd06d3a57958195ec8ae2fe576b0298bf485e reports 16 successful metadata scenarios across fresh npm and official ClawHub installations, 26 action calls, and 16 loopback API requests, including restrictions and revocation. Shared published-driver upgrade qualification is explicitly retained from fix: restore context reads for installed official Discord and Slack plugins #143341. These are reported remote observations, not executions performed during this review.
  • Re-review continuity verified through GitHub blobs: GitHub content hashes for the previous reviewed head match the checkout for channel-actions.ts, action-runtime.test.ts, the complete read-authority integration test, and Slack access-control documentation. The earlier review retained no findings. Local comparison was unavailable, so GitHub blob identities supplied the comparison. (eb5f89327259)

Likely related people:

  • anyech: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shakkernerd: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-09-14T01:28:44.015Z sha fdebc20fcf6e7b934c6d9cd56c5fe27c7121621e :: blocked before merge. :: none
  • reviewed 2026-09-14T01:40:26.029Z sha fdebc20fcf6e7b934c6d9cd56c5fe27c7121621e :: blocked before merge. :: none
  • reviewed 2026-09-14T02:01:13.882Z sha fdebc20fcf6e7b934c6d9cd56c5fe27c7121621e :: blocked before merge. :: none
  • reviewed 2026-09-14T09:44:11.171Z sha 338836fafb9ca7d437f6f9079a62733d4e3f079a :: blocked before merge. :: none
  • reviewed 2026-09-14T12:10:02.993Z sha c555f9f61307c2020b528f93dd595caef680047a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T12:51:12.500Z sha c555f9f61307c2020b528f93dd595caef680047a :: needs maintainer review before merge. :: none

@shakkernerd
shakkernerd force-pushed the fix/slack-metadata-reads branch from fdebc20 to 338836f Compare September 14, 2026 09:27
@shakkernerd
shakkernerd requested a review from a team as a code owner September 14, 2026 09:27
@shakkernerd shakkernerd self-assigned this Sep 14, 2026
@shakkernerd
shakkernerd changed the base branch from stack/official-plugin-reads to main September 14, 2026 09:27
@shakkernerd
shakkernerd marked this pull request as draft September 14, 2026 11:42
@shakkernerd
shakkernerd marked this pull request as ready for review September 14, 2026 11:42
@shakkernerd
shakkernerd force-pushed the fix/slack-metadata-reads branch from 06ea1ba to c555f9f Compare September 14, 2026 11:53
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 14, 2026
@shakkernerd
shakkernerd force-pushed the fix/slack-metadata-reads branch from c555f9f to eb5f893 Compare September 14, 2026 15:41
@shakkernerd
shakkernerd merged commit 9c583a3 into openclaw:main Sep 14, 2026
292 of 298 checks passed
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: official Slack installs now support requester member lookups and bounded workspace emoji lists under the existing account and action restrictions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant