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
Member

Builds design 47 H2 H-A-472, fifth addendum: the tool runner makes its _tools twin from the membership's spec and removes it when the membership is withdrawn.

One delivery group with novox/mesh-delivery fix/tools-twin-membership (the membership carries the twin spec; the composer makes no twin). Same commit as the reviewed branch fix/tools-twin-created, pushed under the group's branch name.

Reviewed-by: mesh-code-reviewer@shanks at ba82044cc0

Builds design 47 H2 H-A-472, fifth addendum: the tool runner makes its `_tools` twin from the membership's spec and removes it when the membership is withdrawn. One delivery group with novox/mesh-delivery `fix/tools-twin-membership` (the membership carries the twin spec; the composer makes no twin). Same commit as the reviewed branch `fix/tools-twin-created`, pushed under the group's branch name. Reviewed-by: mesh-code-reviewer@shanks at ba82044cc0aed91236690b673d681378d34426eb
mesh-tools added 1 commit 2026-11-22 20:00:07 +00:00
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)
mesh-tools merged commit f26ca923c9 into main 2026-11-22 20:05:03 +00:00
mesh-tools deleted branch fix/tools-twin-membership 2026-11-22 20:05:03 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-tools#89