Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs: correct hazard-table release labels and realign the scaling note

Yudhi Armyndharisf83584828eb8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2084641a4..132f525cb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
+- docs/14 corrects four hazard-table release labels (instance-config is 0.18.0, the reload `409` is 0.15.0, the group-summary retypes are 0.14.6, Baileys 5xx is 0.14.5), docs/03 drops a duplicated `health/`, and docs/10's scaling note matches docs/13's "still deploy replicas: 1" stance.
- All five SDKs expose `deleteProfilePicture` (the contract's `DELETE /profile/picture` shipped in none of them), and the SDK coverage gate now checks verbs on multi-verb paths, not just path reachability.
- The typed SDKs' message-list records declare `chatName`, `author`, `mediaPath` and `mediaMimetype` (the wire carried all four; every typed client missed them), and the contract-shape gate now maps `MessageRecord` in all four SDKs, including the Python functional-TypedDict form.
- The dashboard's manual WebSocket retry re-registers the message handler on the fresh socket; the handler effect only re-ran on events changes, so a reconnect left the new socket silent while reporting connected.
diff --git a/docs/03-system-architecture.md b/docs/03-system-architecture.md
index afdcd4063..2d818e6c8 100644
--- a/docs/03-system-architecture.md
+++ b/docs/03-system-architecture.md
@@ -388,8 +388,8 @@ flowchart TB
Trimmed to the load-bearing directories — `src/modules/` holds 31 feature modules. Only `*.module.ts`
is common to all of them; the rest of the shape varies. Most pair a `*.controller.ts` with a
`*.service.ts`, but `events/` is a WebSocket gateway, `mcp/` an MCP server and `queue/` pure BullMQ
-wiring (none of the three has either); `docker/` and `status-store/` are service-only; `health/`,
-`health/` and `settings/` are controller-only (`infra/` gained `infra-data.service.ts`); and 9 modules own an `entities/` directory:
+wiring (none of the three has either); `docker/` and `status-store/` are service-only; `health/` and
+`settings/` are controller-only (`infra/` gained `infra-data.service.ts`); and 9 modules own an `entities/` directory:
```
src/
diff --git a/docs/10-devops-infrastructure.md b/docs/10-devops-infrastructure.md
index e909df289..889bf7096 100644
--- a/docs/10-devops-infrastructure.md
+++ b/docs/10-devops-infrastructure.md
@@ -266,14 +266,17 @@ volumes:
```
> [!IMPORTANT]
-> **Keep `replicas: 1` unless you follow [13 - Horizontal Scaling Guide](./13-horizontal-scaling.md)
-> end to end.** Session ownership is now claim/lease-based (`nodeId` owner + `leaseExpiresAt`, per
-> docs/13): two replicas no longer race to start the same session, so the old "two browsers corrupt
-> one WhatsApp LocalAuth directory" failure this warning used to describe can no longer happen.
-> Multi-node still carries real requirements (`NODE_ID`/`NODE_URL` per replica, Redis for queue,
-> cache and cross-replica WebSocket fan-out, Postgres for the data DB, `AUTO_START_SESSIONS=false`)
-> and buys engine capacity, not shared engine state: live engine handles still live in exactly one
-> process's `EngineRegistry` (`src/engine/engine-registry.service.ts`).
+> **Keep `replicas: 1`.** Session ownership gained claim/lease fencing (`nodeId` owner +
+> `leaseExpiresAt`), which bounds any two-engine overlap on one session to roughly one heartbeat
+> interval instead of eliminating it — and docs/13 still says DO NOT run its multi-replica examples
+> yet: process-local key eviction, WebSocket rate-limit buckets, the unfenced liveness watchdog,
+> bulk-batch state and MCP locality all remain per-process. Follow
+> [13 - Horizontal Scaling Guide](./13-horizontal-scaling.md) for the full list and the design
+> sketch. What multi-node eventually buys is engine capacity, not shared engine state: live engine
+> handles live in exactly one process's `EngineRegistry` (`src/engine/engine-registry.service.ts`),
+> and the hard requirements include a stable `NODE_ID` across restarts, NTP-synced clocks (lease
+> skew beyond the TTL wrongfully transfers a session), sticky sessions, `TRUSTED_PROXIES` for
+> forwarded calls, Redis and Postgres.
### Helm Chart (Kubernetes)
diff --git a/docs/14-migration-guide.md b/docs/14-migration-guide.md
index a7c267f8e..886b07385 100644
--- a/docs/14-migration-guide.md
+++ b/docs/14-migration-guide.md
@@ -728,13 +728,13 @@ docker compose run --rm openwa-api npm run migration:run:prod
| `0.19.0` | `POST /sessions/:id/messages/send-catalog` and `PUT /api/settings` are removed (both always answered `501`) | Drop calls to either; catalog reads and `GET /api/settings` are unchanged |
| `0.18.0` | `NODE_ENV` outside `production`/`development`/`test` fails boot with a named error | Set a legal value or unset it (unset remains valid) |
| `0.18.0` | Go SDK: `UpdateWebhookRequest.Secret`/`.Headers` and `UpdateTemplateRequest.Header`/`.Footer` become pointers, plus a `ClearFilters` flag | Take the address of a variable to send a clearing value, or leave nil to keep the stored one |
-| `0.17.0` | Two enabled instances of one plugin sharing a session scope no longer collapse onto a single config | Move shared keys onto each instance when provisioning a second one on the same session |
+| `0.18.0` | Two enabled instances of one plugin sharing a session scope no longer collapse onto a single config | Move shared keys onto each instance when provisioning a second one on the same session |
| `0.17.0` | `AUDIT_RETENTION_DAYS` is validated at boot as a plain integer | Replace `30d`-style values with plain integers (`0`/negatives keep their documented meaning) |
| `0.17.0` | Plugins must declare a `storage:use` permission to reach `ctx.storage` | Upgrade the official plugins to the floors listed in the 0.17.0 changelog BEFORE upgrading the gateway |
| `0.16.0` | `POST /sessions/:id/groups` answers `501` on the whatsapp-web.js engine (the page code it used no longer exists) | Create groups through the Baileys engine |
-| `0.16.0` | Engine calls during a WhatsApp Web page reload answer a retryable `409` naming the reload (previously `500`, or `200 {success:false}` on six chat-write routes); typed 4xx no longer latch the send breaker | Retry the named-reload `409` after the session re-emits `ready` |
-| `0.16.0` | `POST /groups` returns the summary shape (`participantsCount`, not the detail type), and three SDK response shapes were retyped (`ParticipantsResult`, `ContactRecord.pushName`/fields, `sendProduct` → `{id}`) | Adjust typed SDK reads; untyped JSON consumers are unaffected |
-| `0.16.0` | Baileys transport failures (dead socket) propagate as 5xx instead of misclassified `403`/`400`/`404` | Treat 5xx as retryable transport failure; keep 4xx handling for genuine refusals |
+| `0.15.0` | Engine calls during a WhatsApp Web page reload answer a retryable `409` naming the reload (previously `500`, or `200 {success:false}` on six chat-write routes); typed 4xx no longer latch the send breaker | Retry the named-reload `409` after the session re-emits `ready` |
+| `0.14.6` | `POST /groups` returns the summary shape (`participantsCount`, not the detail type), and three SDK response shapes were retyped (`ParticipantsResult`, `ContactRecord.pushName`/fields, `sendProduct` → `{id}`) | Adjust typed SDK reads; untyped JSON consumers are unaffected |
+| `0.14.5` | Baileys transport failures (dead socket) propagate as 5xx instead of misclassified `403`/`400`/`404` | Treat 5xx as retryable transport failure; keep 4xx handling for genuine refusals |
| `0.14.0` | Eager status backfill on session ready is opt-in (`STATUS_SEED_ON_READY`, default off) | Set the flag only after validating the account; live status events are unaffected |
| `0.14.0` | Link previews are opt-in on the Baileys engine | Pass `linkPreview: true` or a `customLinkPreview` where a card is wanted |
| `0.12.0` | `PUT /api/plugins/:id/sessions` is a full replacement of the global activation set and now requires an **unrestricted ADMIN** key; a session-scoped key is rejected with `403` whatever it sends | Switch any automation that drives global plugin activation from a scoped key to an unrestricted ADMIN key. The per-session config override route `PUT /api/plugins/:id/config/:sessionId` is unaffected and stays scoped to the addressed session |