node-tools: the runner creates the _tools twin from the membership's spec (design 47 H2 H-A-472) #89

Merged
mesh-tools merged 1 commits from fix/tools-twin-membership into main 2026-11-22 20:05:03 +00:00
1 Commits
Author SHA1 Message Date
jschoubben ba82044cc0 node-tools: the runner makes its twin from the membership's spec, removes it when withdrawn
The grants part no longer composes the tool runner's `_tools` twin: at a child's
first subscribe the runner creates or updates `<node>_<module>_tools` on EVENTS and
on every heard stream from the spec the membership's entry carries (filters, ack
wait, max deliver, max ack pending, deliver policy), and binds by name an entry an
older grants part wrote without one. When the grants part withdraws the module's
membership on this node, the runner removes the twins from the streams the last
entry named and makes none again until a membership is issued; it removes nothing
at its start. The heard entry is mesh-sdk's type, so the hearing keys its loops by
stream and consumer.

Builds: design 47 H2 H-A-472 (fifth, sixth, seventh, eighth and ninth addenda)
2026-11-22 19:35:08 +01:00