From 37c47f8f957c1db991a97f169dbe327b85444ea2 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 22 Oct 2026 20:36:21 +0200 Subject: [PATCH] Mark the delivery gate's pulls readable, as build-agent reads it (issue 1790) --- modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps.go | 2 +- modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps.go index f7698298..bf93b7db 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps.go @@ -6,7 +6,7 @@ import "git.novox.be/novox/mesh-sdk/go/announce" // issue 1790): the module says it itself, from its code, before it serves, and a reader is granted what it said // (clause 3). A state is readable when another module's manifest reads it (keeps_test.go names the readers). keeps_test.go holds the list to the // manifest's `state`, and keeps_integration_test.go that the module announces it on a bus. -var Kept = []announce.State{{Name: "asks", Readable: true}, {Name: "deliveries"}, {Name: "groups"}, {Name: "merges", Readable: true}, {Name: "owed", Readable: true}, {Name: "pulls"}, {Name: "source", Readable: true}} +var Kept = []announce.State{{Name: "asks", Readable: true}, {Name: "deliveries"}, {Name: "groups"}, {Name: "merges", Readable: true}, {Name: "owed", Readable: true}, {Name: "pulls", Readable: true}, {Name: "source", Readable: true}} // announceKept says Kept through keeps, which is stdio.Keeps. func announceKept(keeps func(...announce.State) error) error { return keeps(Kept...) } diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps_test.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps_test.go index 37900997..687144b8 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps_test.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/keeps_test.go @@ -14,6 +14,7 @@ import ( var readers = map[string][]string{ "asks": {"mesh-delivery-teller", "mesh-delivery-view"}, "merges": {"mesh-delivery-forge-bridge"}, + "pulls": {"build-agent"}, // in mesh-controller "owed": {"mesh-delivery-forge-bridge"}, "source": {"mesh-delivery-indexer", "mesh-delivery-checker"}, }