Skip to content

Share Slack follow-up routing with durable hosts - #29

Merged
tin-berri merged 1 commit into
mainfrom
litellm_host_followup_routing
Nov 24, 2026
Merged

tin-berri merged 1 commit into
mainfrom
litellm_host_followup_routing

Conversation

@tin-berri

@tin-berri tin-berri commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Durable Slack hosts currently normalize events with AgentChat but must implement their own rule for accepting unmentioned thread replies. Add SlackHost.accepts(event, subscribed=...) and share the routing policy with the existing Rust/Node and Python Slack adapters. Hosts supply their saved subscription state and retain authorization, pause policy, persistence, and agent execution.

The public method performs no I/O, creates no subscriptions, validates the event workspace, and preserves normalization/exclusion behavior. Documents integration with an existing durable conversation binding. Also annotates an existing Python FFI signature whose keyword arguments trigger the workspace Clippy limit.

Validation: full Python suite, 83 Rust workspace tests, Ruff, public Python typing smoke, cargo fmt, and Clippy with warnings denied. Tests cover subscribed/unsubscribed replies, mentions, DMs, quoted mentions, bot echoes, exclusions, subscription removal, malformed events, and workspace isolation.

Consumer integration: BerriAI/moyai#754. Moyai passes its existing thread binding as the subscription snapshot; it retains session ownership, authorization, pause policy and durable turn admission.

Real consumer demonstration

Ran actual baseline and final Moyai deployments with separate PostgreSQL databases, API/coordinator/broker/worker processes, local Temporal, and a real dev-gateway model (openai/gpt-6-astra). A signed mention establishes context; an unmentioned follow-up receives the correct remembered code word in the same session. A duplicate event and an unrelated thread produce zero extra turns. Both revisions pass because this extracts existing behavior into the SDK. Slack HTTP was captured locally and S3 used moto; there were no real Slack posts.

Before: Moyai 7a11af3, SDK 6985d19. After: Moyai 163737d, SDK 1af6a76.

The full comparison, setup and validation details are in BerriAI/moyai#754. Below is the actual final application recording (27s) and screenshot.

followups-after.mp4

Actual Moyai consuming AgentChat follow-up routing

@tin-berri
tin-berri merged commit 7c76f9e into main Nov 24, 2026
12 checks passed
@tin-berri
tin-berri deleted the litellm_host_followup_routing branch November 24, 2026 20:17
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