From 9d0478d12e24dfe17f18023bae72b1c736526ec9 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 27 Nov 2026 02:56:43 +0100 Subject: [PATCH] S1 hub-binds-every-pattern: the subject of durables-composed names the grants part through buscompose.GrantsModule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mesh-sdk takes no new seat-specific name (ADR 0613 §5): the hub's wake subject is built from the one literal it keeps for the grants part. API unchanged. Builds: design 47 H2b §836 2.; H-A-835 as amended by H-A-864 --- go/process/event_hub.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/process/event_hub.go b/go/process/event_hub.go index 9d6485d0..2aee806b 100644 --- a/go/process/event_hub.go +++ b/go/process/event_hub.go @@ -13,6 +13,7 @@ import ( "github.com/nats-io/nats.go" "github.com/nats-io/nats.go/jetstream" + "git.novox.be/novox/mesh-sdk/go/buscompose" "git.novox.be/novox/mesh-sdk/go/seatdef" ) @@ -168,7 +169,7 @@ func (h *EventHub) Patterns() []string { // the hub binds again each stream it has not bound (design 47 H2b §836 2., H-A-835). The subject is the seat's definition's // alone: the hub reads no body. func durablesComposedSubject(cred Account) string { - return seatdef.EventSubject("mesh-grants", "durables-composed") + "." + cred.Node + "." + cred.Module + return seatdef.EventSubject(buscompose.GrantsModule, "durables-composed") + "." + cred.Node + "." + cred.Module } // Start binds the module's durable `_` on the shared events stream and on every kept seat event's stream