From da551f530a0ba4dc1ea46330afdc28ce9a180c18 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 27 Nov 2026 03:53:48 +0100 Subject: [PATCH] H2b review r1 part 1 item 5: owed-say's description names no hand-act log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds: design 47 H2b §832 6. --- .../go/clients/meshwantsclient/wants_test.go | 7 +++++++ .../mesh-delivery-contracts/go/seats/meshwants/contract.go | 2 +- modules/mesh-delivery-contracts/seats/mesh-wants/seat.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/mesh-delivery-contracts/go/clients/meshwantsclient/wants_test.go b/modules/mesh-delivery-contracts/go/clients/meshwantsclient/wants_test.go index da98e58b8..87c72a814 100644 --- a/modules/mesh-delivery-contracts/go/clients/meshwantsclient/wants_test.go +++ b/modules/mesh-delivery-contracts/go/clients/meshwantsclient/wants_test.go @@ -18,6 +18,13 @@ func rep(c string) string { return strings.Repeat(c, 64) } // values (the golden texts are its output; the field order is the contract's now, so values are compared decoded), and the // refusals it made. func TestWantsAreWhatTheEarlierCodecWrote(t *testing.T) { + // Review r1 part 1 item 5 (design 47 H2b §832 6.): owed-say's description says no act is written in a hand-act log, which no + // line gives and the assigner does not do. + t.Run("owed-say's description names no hand-act log", func(t *testing.T) { + if d := seat.VerbDescription(seat.VerbOwedSay); d == "" || strings.Contains(d, "hand-act") { + t.Errorf("owed-say's description is %q, want one that names no hand-act log", d) + } + }) a, b, c, d := "src2:"+rep("a"), "src2:"+rep("b"), "sha256:"+rep("c"), "sha256:"+rep("d") sameJSON := func(t *testing.T, got []byte, want string) { t.Helper() diff --git a/modules/mesh-delivery-contracts/go/seats/meshwants/contract.go b/modules/mesh-delivery-contracts/go/seats/meshwants/contract.go index dc3ce05af..4da5db20c 100644 --- a/modules/mesh-delivery-contracts/go/seats/meshwants/contract.go +++ b/modules/mesh-delivery-contracts/go/seats/meshwants/contract.go @@ -94,7 +94,7 @@ func VerbDescription(verb string) string { case VerbOwed: return "Every event the assigner says on this seat that the bus refused or did not acknowledge and still owes (design 47 H2b §832 6.): its message id, when it was first owed, how many times it was said again and when it is said again next." case VerbOwedSay: - return "Say the first owed event of one id's order now, its delay set back to the first pace (design 47 H2b §832 6.); the act is written in the hand-act log first." + return "Say the first owed event of one id's order now, its delay set back to the first pace (design 47 H2b §832 6.)." case VerbOwedDrop: return "Drop an owed event the bus will never take, with every event owed behind it in its order, doing for each what the bus taking it would have done, then clear its finding (design 47 H2b §832 6.); the act and why are written in the hand-act log first." } diff --git a/modules/mesh-delivery-contracts/seats/mesh-wants/seat.json b/modules/mesh-delivery-contracts/seats/mesh-wants/seat.json index 1d7bb0ccc..94002e8b5 100644 --- a/modules/mesh-delivery-contracts/seats/mesh-wants/seat.json +++ b/modules/mesh-delivery-contracts/seats/mesh-wants/seat.json @@ -464,7 +464,7 @@ { "name": "owed-say", "class": "act", - "description": "Say the first owed event of one id's order now, its delay set back to the first pace (design 47 H2b §832 6.); the act is written in the hand-act log first.", + "description": "Say the first owed event of one id's order now, its delay set back to the first pace (design 47 H2b §832 6.).", "input": { "type": "object", "properties": {