The gate asks the ledger's calls and its fill of its machine's tool runner (milestone 47/G, W11.20 ruling)

The gate reads its records' ledger fill before it opens a record; its manifest asked no
capability, so it could run beside a runner answering neither. It now asks ledger-calls and
ledger-fill, the fill a capability of its own.

Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ

(Joined from c20044a2.)
Builds: design 47 G §181, §462, §488 (GATE12)

Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
2026-11-11 14:44:20 +01:00
parent bf6bb3d094
commit ed188268a0
2 changed files with 12 additions and 0 deletions
@@ -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.
+4
View File
@@ -319,6 +319,10 @@
},
"conditions"
],
"capabilities": [
"ledger-calls",
"ledger-fill"
],
"reads": [
"mesh-delivery-teller.answers",
"mesh-delivery-checker.verdicts",