Fix 9.7e: route-proxy names the seats it reads (seat:mesh-provisioner, seat:mesh-module-assigner), no module

Builds: design 47 G A-116 (§636, §616)

Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
2026-11-12 01:21:09 +01:00
parent 3c2239802d
commit ca6d8cd8eb
9 changed files with 109 additions and 34 deletions
+12 -5
View File
@@ -12,7 +12,10 @@ import (
"time"
"git.novox.be/novox/mesh-contracts/provisioning/go/clients/meshprovisionerclient/provider"
meshprovisioner "git.novox.be/novox/mesh-contracts/provisioning/go/seats/meshprovisioner"
stdio "git.novox.be/novox/mesh-sdk/go"
"git.novox.be/novox/mesh-sdk/go/busretry"
"git.novox.be/novox/mesh-sdk/go/seatlist"
"route-proxy/contract"
)
@@ -26,11 +29,19 @@ func main() {
if node == "" {
say("MESH_NODE is not set; answering no consumers")
} else {
p := newProvider(node, provider.StateBus(ModuleName, provisionerModule), say)
go func() {
// The helper's watches go through the runtime's channel, which Serve holds: one asked before it does is
// refused ("before Serve"), Run returns and the helper stays stopped until the process restarts.
<-stdio.Served()
// The holder of the seat mesh-provisioner is read from the seat that places modules, not named here (A-116).
holder, err := busretry.DoRepeatable("who holds "+meshprovisioner.Seat, func() (string, error) {
return seatlist.HolderOf(stdio.Ask, meshprovisioner.Seat)
}, nil)
if err != nil {
say("the provider helper cannot start: %v", err)
return
}
p := newProvider(node, holder, provider.StateBus(ModuleName, holder), say)
if err := p.Run(context.Background()); err != nil {
say("the provider helper stopped: %v", err)
}
@@ -43,7 +54,3 @@ func main() {
os.Exit(1)
}
}
// provisionerModule is the holder of the seat mesh-provisioner, named from this module's manifest (its `reads` of plans and
// provisions; TestTheProvisionerIsTheManifests).
const provisionerModule = "mesh-provisioner"