From 500154b865ecae398d7d937d0457321fac8eac6e Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 5 Nov 2026 14:33:24 +0100 Subject: [PATCH] =?UTF-8?q?The=20gate=20accepts=20the=20bridge's=20publish?= =?UTF-8?q?ed=20forgemsg=20by=20its=20series=20(K-22;=20ADR=200634=20?= =?UTF-8?q?=C2=A73,=20F3;=20issue=201966)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cmd/mesh-delivery-gate/manifest_test.go | 9 +++++++-- modules/mesh-delivery-gate/module.json | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/manifest_test.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/manifest_test.go index 23bc63abb..f25436eb0 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/manifest_test.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/manifest_test.go @@ -19,8 +19,9 @@ import ( // and says, the tools it calls, its state — and names nothing of one installation. type manifest struct { - Module string `json:"module"` - Claims []struct { + Module string `json:"module"` + Packages map[string]string `json:"packages"` + Claims []struct { Name string `json:"name"` Scope string `json:"scope"` Serves []string `json:"serves"` @@ -76,6 +77,10 @@ func TestItClaimsTheDeliverySeatAndFollowsWhatItHandles(t *testing.T) { if want := []string{"deliveries", "show", "groups", "checks", "table", "stalled", "recheck", "close", "settle"}; !reflect.DeepEqual(m.Claims[0].Serves, want) { t.Fatalf("serves %v, wanted %v", m.Claims[0].Serves, want) } + // The forge messages' layout is the bridge's published package forgemsg, taken by its series (ADR 0634 §3, design 32). + if m.Packages["forgemsg"] != "0.1" { + t.Errorf("packages %v: the gate accepts forgemsg of series 0.1", m.Packages) + } // R6-C1: no controller verb is invoked and no plan event is consumed. for _, c := range m.Invokes { if strings.HasPrefix(c, "seat:mesh-controller.") { diff --git a/modules/mesh-delivery-gate/module.json b/modules/mesh-delivery-gate/module.json index ef5d1b80a..736144095 100644 --- a/modules/mesh-delivery-gate/module.json +++ b/modules/mesh-delivery-gate/module.json @@ -38,6 +38,9 @@ "uses": [ "operator-channel" ], + "packages": { + "forgemsg": "0.1" + }, "invokes": [ "gitea.gitea_commit_statuses", "gitea.gitea_contains",