Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
End-to-end proof: follow the conversation
This plays every journey of the "follow the conversation" feature in a real
local Mattermost, against switch-core built from this checkout, and checks
each one. It complements the automated tests in
core/tests/switch_core/delivery/, which run on every PR. This run needs
Docker, Mattermost and Chrome, so it isn't part of the PR checks. Run it
before a release, or after changing how messages reach agents.
just init-env # once, if you have no .env
just down # stop your local stack: this run uses the same ports
just e2e-follow-ups # about 3 minutes
just e2e-follow-ups --video # also records a captioned demo (needs ffmpeg)
just e2e-follow-ups --keep # leave it running afterwards to try by hand
It exits non-zero if any journey fails. Output goes to
build/e2e/follow-the-conversation/:
| File | What it is |
|---|---|
report.md |
Every journey: who sent what, who it should reach, who it did, and the server's log line for each message |
screens/ |
Mattermost screenshots of each room and thread |
follow-the-conversation-demo.mp4 |
With --video: one captioned video of every journey |
switch-core.log, agents.log |
The server's and the test agents' logs |
How it works
run.shstarts its own Postgres and Mattermost (Compose projectswitch-e2e, removed afterwards), applies migrations, and starts switch-core with thefollow_the_conversationflag on. The follow-up window is set to 20 seconds so the "too late" journey doesn't take 5 minutes.harness.py setupregisters three test agents:helperandreviewer, which anyone may instructprivate-bot, which only its owner may instruct
It also adds a second Mattermost person,
bob, and creates the rooms.harness.py agentsruns the agents. Each opens its event stream and receives every message with Switch's own answer to "is this for you?". When the answer is yes, the agent replies, and the reply says which rule delivered the message.harness.py runplays each journey asuserandbob, then checks Switch's answer for every agent against the expected one. It collects the server'sFollow the conversation:log line for each message, and writes the report.screenshots.pyandvideo.pydrive headless Chrome over the DevTools protocol, signed in asuser.
The journeys mirror test_conversation_journeys.py. When you add a rule or a
command, add a journey to both.