S1 hub-binds-every-pattern: the subject of durables-composed names the grants part through buscompose.GrantsModule

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
This commit is contained in:
2026-11-27 02:56:43 +01:00
parent 2e192b4ebf
commit 9d0478d12e
+2 -1
View File
@@ -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 `<node>_<module>` on the shared events stream and on every kept seat event's stream