H2b review r1 part 3 note: the indexer uses judge.NodeEngineSeat, not a repeat of it

Builds: design 47 G §508 (the seat's one name)
This commit is contained in:
2026-11-27 03:52:58 +01:00
parent c9599c8b82
commit 781108b07e
@@ -12,6 +12,8 @@ import (
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-sdk/graph"
"git.novox.be/novox/mesh-sdk/go/catalogue"
"git.novox.be/novox/mesh-sdk/go/seatdef"
"mesh-delivery-indexer/judge"
)
// The edges of a catalog graph entry (design 47 G §47 to §50, §121; A-208): the indexer writes, in each entry of a revision,
@@ -519,7 +521,7 @@ func WithNewEdges(entries, base map[string]meshcatalog.CatalogEntry, movers []me
}
var engines []string
for _, m := range slices.Sorted(maps.Keys(entries)) {
if moved[m] && manifestOf(entries[m]).ClaimsSeat(nodeEngineSeat) {
if moved[m] && manifestOf(entries[m]).ClaimsSeat(judge.NodeEngineSeat) {
engines = append(engines, m)
}
}
@@ -573,9 +575,6 @@ func WithNewEdges(entries, base map[string]meshcatalog.CatalogEntry, movers []me
return out
}
// nodeEngineSeat is the seat whose holder reads every manifest word (ADR 0614 §4).
const nodeEngineSeat = "node-engine"
// emitsOf are the events the entry's manifest emits, named locally.
func emitsOf(e meshcatalog.CatalogEntry) []string {
if len(e.Manifest) == 0 {