groundtruth
A crisis verification agent that fact-checks actionable instructions against official advisories using retrieval-augmented verification, exposed as an MCP server with verify_claim and corpus_info tools.
README
GroundTruth — Crisis Verification Agent for Slack
Every agent answers. GroundTruth verifies.
During disasters, the deadliest thing in a coordination channel isn't slow information — it's wrong information. GroundTruth is a Slack agent that fact-checks every actionable instruction in a crisis channel against official advisories using retrieval-augmented verification, replies in-thread with a cited verdict, escalates dangerous misinformation, and keeps a tamper-evident audit log.
Built for the Slack Agent Builder Challenge 2026 — Slack Agent for Good track.
Verdicts
| Verdict | Meaning | Action taken |
|---|---|---|
| ✅ VERIFIED | Consistent with a cited official advisory | Threaded confirmation + citation |
| ⚠️ UNVERIFIED | No official source covers this claim | Threaded caution notice |
| 🚨 DANGEROUS | Contradicts official guidance | Threaded correction + auto-escalation to #crisis-alerts |
Every verdict is appended to a hash-chained audit log (audit/verdicts.jsonl) — change any historical record and the chain breaks, so post-crisis accountability is provable.
Architecture

Slack #crisis-ops ──messages──▶ GroundTruth Agent (Bolt, Socket Mode)
│ claim extraction (actionable-only filter)
▼
Verification engine ◀── also exposed as an MCP server
embed → retrieve (advisory corpus) → verdict
│
┌────────────────────────┼──────────────────────┐
▼ ▼ ▼
Threaded verdict card #crisis-alerts Hash-chained
(Block Kit + citation) escalation (🚨 only) audit log (JSONL)
- Retrieval: sentence-transformers (
all-MiniLM-L6-v2) if installed, TF-IDF fallback otherwise — the test suite runs on the fallback, no heavy downloads needed. - MCP: the same engine is exposed as an MCP server (
mcp_server.py) withverify_claimandcorpus_infotools, so any MCP-capable agent can use GroundTruth as a verification tool.
Quickstart (10 minutes)
-
Create the Slack app: api.slack.com/apps → Create New App → From an app manifest → pick your sandbox workspace → paste
manifest.json. -
Tokens: Install the app to the workspace → copy the Bot User OAuth Token (
xoxb-…). Then Basic Information → App-Level Tokens → generate a token withconnections:writescope (xapp-…). -
Configure:
cp .env.example .env # paste both tokens; set ALERTS_CHANNEL pip install -r requirements.txt -
Create channels
#crisis-opsand#crisis-alertsin the workspace and/invite @GroundTruthinto both. -
Run:
python app.py -
Demo it: post in
#crisis-ops:Water at Relief Camp B is safe to drink
GroundTruth replies 🚨 in-thread with the contradicting advisory citation and escalates to
#crisis-alerts. Try/groundtruth check Riverside Bridge is openfor the on-demand path.
Tests
python -m pytest tests/ -q # 7 tests: verdicts, claim filter, audit chain
Demo corpus
data/advisories/ contains an original demo corpus written for this hackathon in the style of official flood advisories (clearly marked DEMO CORPUS). In deployment, drop real advisories from your authority (NDMA / WHO / state EOC) into the folder — the engine indexes any .md files at startup.
Limitations (honest MVP notes)
- Contradiction detection is a transparent lexical polarity heuristic over the retrieved passage. It handles the common crisis pattern ("X is safe" vs "X is NOT safe") well, but a production build should replace
_stance()with an NLI cross-encoder. - Claim extraction is keyword-based; a production build would use an LLM pass (Slack AI) for higher recall.
- The corpus is static at startup; live advisory ingestion via the Real-Time Search API is the next milestone.
Roadmap
Multi-language claims (Hindi/Gujarati) · live advisory ingestion (RTS API) · NLI-based stance model · per-channel corpus scoping.
Credits
Built by Ravi Gohel (B.Tech CSE — AI/ML, Marwadi University) for the Slack Agent Builder Challenge 2026, with AI-assisted development. Verification approach informed by the author's research on safe/unsafe instruction classification with RAG grounding.
MIT License.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.