Skip to content

docs: ADR 0254 — Slack bot, mecatl's first real SDK consumer - #884

Closed
kantord wants to merge 2 commits into
mainfrom
add-slack-bot-adr
Closed

kantord wants to merge 2 commits into
mainfrom
add-slack-bot-adr

Conversation

@kantord

@kantord kantord commented Aug 31, 2026

Copy link
Copy Markdown
Member

Summary

Design record for #882 (the planning sub-task of #881, the Slack bot end-to-end reference implementation for @stacklok/mecatl, #821).

  • Build on Slack's 2026 Agent Sessions API instead of hand-rolled message editing — session lifecycle maps directly onto mecatl's own states (active↔idle, processing↔running, suspended↔awaiting/PendingAsk, closed↔terminal)
  • Native stop button wired to mecatl's existing CancelRun
  • Native token streaming (chat.startStream/appendStream/stopStream) spiked first against a known channel-streaming platform bug, falling back to a single final message if it doesn't hold up
  • One mecatl session per Slack thread, Socket Mode for event delivery (no public URL)
  • Auto-approve by default; manual approval (suspended status + Block Kit buttons) prototyped as an explicit experiment, not a v1 requirement
  • mecated --mock during development, matching the project's existing offline-testing discipline
  • Explicitly scopes out two things: whether any existing code gets reused (an open fact-check on the relationship between an informally-mentioned PoC and stacklok/atrium's "Craig" — tracked in Slack bot: plan the implementation #882, not resolved here) and a separate, bigger identity-impersonation idea from a parallel Slack thread

Verification

  • go test ./docs/lint/... — pass
  • matlatl check . --strict — 0 broken links/anchors, 0 ambiguous, 0 orphans, 0 unreachable
  • llms.txt regenerated

Fully or partially written by an AI agent.

@kantord
kantord marked this pull request as ready for review August 31, 2026 16:58
kantord and others added 2 commits August 31, 2026 18:59
Design record for #882 (the plan sub-task of the Slack bot end-to-end
effort, #881): build on Slack's 2026 Agent Sessions API rather than
hand-rolled message editing (session lifecycle maps directly onto
mecatl's own states, native stop button wires to CancelRun, native
streaming primitives spiked first against a known channel-streaming
platform bug), one mecatl session per Slack thread, auto-approve by
default with manual approval prototyped as an explicit experiment,
mecated --mock during development, Socket Mode for event delivery.

Explicitly scopes out two things: whose code (if any) gets reused
(the Rado-PoC/Craig relationship is an open fact-check, not resolved
here) and Rado's separate, bigger identity-impersonation idea.

Fully or partially written by an AI agent.

Co-Authored-By: Claude <[email protected]>
ADR 0253 merged as part of this rebase; restore the direct doc-relative
link that had been worked around with an issue link while it was still
an open PR.
@kantord

kantord commented Aug 31, 2026

Copy link
Copy Markdown
Member Author

Closing without merging per Samu's feedback: this doesn't need to be an ADR — it's an example app's design, cheap to revise, not a mecatl-architecture commitment. Moved the content into #882's body as a living plan instead, to be migrated into a design note living next to the example code itself once #821 creates sdk/typescript/.

Fully or partially written by an AI agent.

@kantord kantord closed this Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant