Repository navigation
Conversation
kantord
marked this pull request as ready for review
September 2, 2026 16:10
JAORMX
approved these changes
Sep 3, 2026
Implements the Slack ↔ mecatl SDK bridge for #883, blocked on the SDK (#821) M1 landing and the design in #882/#881. Uses Slack's newer Agent Sessions API (agent_view/app_home_opened/agents.sessions.setStatus) after live testing showed bolt-js's Assistant class targets a different, older Slack feature that never fires for this app's configuration — see DESIGN.md for the full story. Supports DM and channel @mention (public + private), one mecatl session per thread, auto-approved permission asks. Panel-review follow-up in the same change: a caller allowlist (SLACK_ALLOWED_USER_IDS) and a per-user rate limit close the "anyone reachable can trigger unattended command execution" gap; remaining gaps (per-run spend budget, session persistence across restart, streaming/stop-button/approval UI) are tracked as TODOs in bridge.ts/DESIGN.md, not silently dropped. Also adds a docker-compose setup (mecated + bot, internal-only network) and CI wiring (a slack-bot-example job mirroring the sdk job). Fully or partially written by an AI agent. Co-Authored-By: Claude Sonnet 5 <[email protected]>
task sdk:lint recursively scans sdk/typescript/, and the new
examples/slack-bot/biome.json was a second root config nested under
it — Biome refuses that combination outright ("Found a nested root
configuration, but there's already a root configuration"), which broke
the TypeScript SDK CI job. The example package is meant to be
independently manageable (own lockfile, own Taskfile), so the SDK's
own linter should never reach into it at all.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
This was referenced Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #883 — the Slack ↔ mecatl SDK bridge, blocked on the SDK (#821)
M1 landing and the design in #882/#881.
agent_view/app_home_opened/agents.sessions.setStatus) after live testing showed bolt-js'sAssistantclass targets a different, older Slack feature that neverfires for this app's configuration — see
DESIGN.mdfor the full story.@mention(public + private), one mecatl sessionper thread, auto-approved permission asks.
(
SLACK_ALLOWED_USER_IDS) and a per-user rate limit close the "anyonereachable can trigger unattended command execution" gap.
restart, streaming/stop-button/approval UI) are tracked as
TODOs inbridge.ts/DESIGN.md, not silently dropped.docker-composesetup (mecated+ bot, internal-only network —built and verified both images locally) and CI wiring (a
slack-bot-examplejob mirroring thesdkjob).Test plan
task slack-bot:lint/typecheck/test— greentask sdk:test— untouched, still greendocker compose build(both images) — verified locallydocker compose up—mecatedreaches healthy, bot container startscorrectly (fails only at Slack's real auth with fake test tokens)
(multi-turn, same session)
@mention(public/private) — implemented, not yetlive-verified (see
DESIGN.md)matlatl check . --strict— clean,llms.txtregeneratedDraft while channel support is still unverified live and the new
slack-bot-exampleCI job hasn't run yet.Fully or partially written by an AI agent.