]> git.giacomolli.uk - onechat/commit
Deliver routed WhatsApp batches to children
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 07:21:17 +0000 (04:21 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 07:21:17 +0000 (04:21 -0300)
commiteffd32b0f2e4d146b219b1727601b0b7f6593638
tree677f406def0e947621f36a6f56e451e885221c48
parent723f6e18adc6482ed913e1618c8a76e981720c2b
Deliver routed WhatsApp batches to children

A routed batch enters the durable agent message queue as work and wakes
only its child. Saved log IDs prevent a second entry on restart, and a
receipt remains until inbox removal even if the child finishes first.
Receipts use batch numbers rather than a watermark because chats can
close out of number order.

Unrouted batches keep the root path. A missing child sends new inputs
and its queued external batches to the root. Routed events keep their
WhatsApp source without a subagent completion status, and daemon logs
name the destination without message text or chat IDs.
README.rst
daemon_message.go
whatsapp_inbox.go
whatsapp_route_test.go [new file with mode: 0644]