Orphaned durables: removable by the bus module, left out of the behind check, not composed again (H-A-472) #737

Merged
mesh-tools merged 2 commits from fix/orphan-durables into main 2026-11-22 13:42:30 +00:00
2 Commits
Author SHA1 Message Date
jschoubben 3443760205 nats: nats_consumer_remove removes only a durable that is itself an orphan
Review round 1: a durable whose twin is current was removed without
reading the durable itself, so of the five live pairs where both twins
have pulls waiting either one would have gone. The tool now reads the
named durable too and refuses it while pulls wait on it, both read from
the bus at the call. "Current" is the setting twin-current-hours (24 by
default) of the manifest, read from the configuration at each call, the
field name the grants part's manifest names too.

Builds: design 47 H2 H-A-472 (1) and its third addendum (1), (2); review round 1 findings (1), (2)
2026-11-22 14:33:01 +01:00
jschoubben e0bd0bedc4 nats: nats_consumer_remove removes an orphaned durable whose twin is current
A module that moved into the tool runner left its program's durable
<node>_<module>, and one that runs its own program again left
<node>_<module>_tools: about 110 such orphans the tool refused by name.
It now removes a module's durable when its twin on the same stream has
pulls waiting and a delivery within the day, and names the twin in the
hand act; a module's only durable stays refused.

Builds: design 47 H2 H-A-472 (1), H-A-127, H-A-128, G A-340
2026-11-22 14:00:11 +01:00