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 fc3194694..138f4f22a 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 @@ -12,6 +12,7 @@ import ( "time" "git.novox.be/novox/mesh-delivery/contracts/go/clients/meshdeliveryclient" + "git.novox.be/novox/mesh-sdk/go/buscalls" "git.novox.be/novox/mesh-sdk/go/catalogue" "git.novox.be/novox/mesh-sdk/go/seatlist/seatlisttest" ) @@ -35,6 +36,8 @@ type manifest struct { State []any `json:"state"` Reads []string `json:"reads"` Tools []string `json:"tools"` + // Capabilities are what the gate's machine's tool runner must state (buscalls.Capabilities). + Capabilities []string `json:"capabilities"` } // buckets are the names of the state the manifest declares, each a bare name or an object with a name and a history. @@ -134,6 +137,11 @@ func TestItClaimsTheDeliverySeatAndFollowsWhatItHandles(t *testing.T) { if raw, err := os.ReadFile("../../module.json"); err != nil || strings.Contains(string(raw), "check-gates-merge") { t.Fatalf("the manifest still names check-gates-merge (%v)", err) } + // W11.20: the gate keeps its records in a ledger and reads its fill before it opens one, so it is held off a machine whose + // tool runner answers neither (the fill a capability of its own, the lead's ruling). + if !reflect.DeepEqual(m.Capabilities, []string{buscalls.LedgerCalls, buscalls.LedgerFillCalls}) { + t.Fatalf("capabilities %v, want %s and %s", m.Capabilities, buscalls.LedgerCalls, buscalls.LedgerFillCalls) + } // What it reads: the teller's answers and the checker's verdicts (issue 1302). The carry from today's module's buckets, the // seat's holder and the machines' haves went with the seat's hand-over (ADR 0539 ยง17). The delivery view's reach, which // `deliveries` and `show` derive whether a merge is on the machines from (ADR 0556 clause 4); no forge tool is asked for it. diff --git a/modules/mesh-delivery-gate/module.json b/modules/mesh-delivery-gate/module.json index 9677d8801..138321257 100644 --- a/modules/mesh-delivery-gate/module.json +++ b/modules/mesh-delivery-gate/module.json @@ -319,6 +319,10 @@ }, "conditions" ], + "capabilities": [ + "ledger-calls", + "ledger-fill" + ], "reads": [ "mesh-delivery-teller.answers", "mesh-delivery-checker.verdicts",