Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

docs: require whatsmeow protocol verification for agents

Aldino Kemalf927d1185140
diff --git a/AGENTS.md b/AGENTS.md
index d3d72268..6463df08 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -4,6 +4,20 @@ GOWA is a Go WhatsApp API server using whatsmeow, Fiber, and SQLite. The Go modu
and local runtime directory are `src/`. `rest` also mounts MCP at `/mcp` when
enabled; both transports share the same device manager and usecases.
+## WhatsApp protocol verification
+
+- [whatsmeow](https://github.com/tulir/whatsmeow) is GOWA's base WhatsApp library.
+ Every agent working on WhatsApp protocol behavior must verify relevant assumptions
+ against upstream source and documentation before implementing or reviewing changes.
+- Use the version pinned in `src/go.mod` (and any applicable module replacement).
+ Inspect the matching module source or upstream revision; do not assume upstream
+ `main` matches GOWA's dependency. This applies to messages, events, JIDs, receipts,
+ presence, authentication, sessions, and protocol types.
+- Identify the upstream files or symbols checked in the work summary. If the relevant
+ source is unavailable or behavior remains uncertain, state that limitation rather
+ than claiming protocol verification. Preserve GOWA's own API contracts and
+ application behavior when integrating upstream behavior.
+
## Working scope and completion
- Use the applicable scoped `AGENTS.md` and task-relevant source. The entry points