diff --git a/modules/mesh-delivery-indexer/internal/index/catalog_edges.go b/modules/mesh-delivery-indexer/internal/index/catalog_edges.go index 53f930baf..c7d0000d4 100644 --- a/modules/mesh-delivery-indexer/internal/index/catalog_edges.go +++ b/modules/mesh-delivery-indexer/internal/index/catalog_edges.go @@ -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 {