071. Delivery moves to v0.40 one node at a time, behind a build tag

Status: accepted 2026-10-24 by the owner ("if we can test it without breaking anything, I am fine with the work being done"); being built. Ends the July pin of ADR-067's patch once every node has moved.

Context

Every desktop, the VPS and the container image build liblogosdelivery at logos-delivery 7a3a064b (2026-07-03). The phones use a prebuilt library of the same revision. ADR-067's shard fix is carried as a patch against it. Upstream's latest release was v0.39.2, 237 commits on; v0.40.0 was prepared on 2026-10-21 (branch chore/prepare-release-v0.40.0, 1a3b6c7d) but not yet tagged. It is the first release with the shard fix (#4513).

What changed for us between the two, from the changelogs and tried on this laptop on 2026-10-24:

Loam (jimmy-crib/vpavlin) builds its own Android library at v0.38.1, with a DNS-deadlock fix and an arm64 Android target that upstream doesn't have. Its desktop and hubs use delivery_module 0.3.0 (v0.39.0), pinned because later modules break reliable-channel receive (logos-delivery-module#169).

Decision

Target v0.40.0, the release branch until it is tagged. Build both bindings from one package, internal/waku, behind one API: the July one by default, and v0.40's with -tags ld040. Nodes move one at a time; the default flips, and the July binding and ADR-067's patch go, once every node, phones included, runs v0.40.

How it was tested before anything shipped

On this laptop, against the v0.40 release branch built by docker/build-lib.Dockerfile:

Before any node moves

Consequences