From 8813c4e9e9da56f2ecac80e65841f9f5a4eb52d4 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 22 Nov 2026 00:58:06 +0100 Subject: [PATCH] BM4a (sdk): a build seat's holder keeps its outputs in its `outputs` objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit steprun.OutputsStore names the holder's `outputs` objects, which its manifest requires with their cap and max-age, in place of the steps state's own objects store. Builds: design 47 H2 §791, §820; H-A-399 (1) --- modules/mesh-delivery-sdk/steprun/outputs.go | 9 ++++----- modules/mesh-delivery-sdk/steprun/outputs_test.go | 5 +++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/mesh-delivery-sdk/steprun/outputs.go b/modules/mesh-delivery-sdk/steprun/outputs.go index f7e34988a..d2427a081 100644 --- a/modules/mesh-delivery-sdk/steprun/outputs.go +++ b/modules/mesh-delivery-sdk/steprun/outputs.go @@ -4,13 +4,12 @@ import ( "fmt" "git.novox.be/novox/mesh-sdk/go/buscalls" - "git.novox.be/novox/mesh-sdk/go/catalogue" ) -// OutputsStore is the local name of the object store a build seat's holder keeps a run's answer in when it is over what -// step-ended carries inline (design 47 G A-254): the steps state's own objects store, `steps-objects`, which the holder's manifest -// `requires` asks for with its steps state (design 47 G A-313). -var OutputsStore = catalogue.StateObjectsName("steps") +// OutputsStore is the local name of the object store a build seat's holder keeps a run's output in (design 47 H2 §791, +// §820): its `outputs` objects, which the holder's manifest `requires` with their cap and max-age, and which the seat's verb +// output reads (H-A-399 (1)). +const OutputsStore = "outputs" // OutputObjects is the object store of OutputsStore as a holder uses it (mesh-sdk busstate.ObjectsOf(OutputsStore)). type OutputObjects interface { diff --git a/modules/mesh-delivery-sdk/steprun/outputs_test.go b/modules/mesh-delivery-sdk/steprun/outputs_test.go index 92c49d590..424bc7826 100644 --- a/modules/mesh-delivery-sdk/steprun/outputs_test.go +++ b/modules/mesh-delivery-sdk/steprun/outputs_test.go @@ -34,8 +34,9 @@ func TestOutputsKeptAreRead(t *testing.T) { if _, err := ReadOutputFrom(st)("output.none"); err == nil { t.Fatal("an absent answer was read") } - if err := KeepOutputIn(nil)("o", nil); err == nil || !strings.Contains(err.Error(), "steps-objects") { - t.Fatalf("no store kept an answer, or did not name the steps state's objects store: %v", err) + // Design 47 H2 §791: the store is the holder's `outputs` objects. + if err := KeepOutputIn(nil)("o", nil); err == nil || !strings.Contains(err.Error(), "no outputs store") { + t.Fatalf("no store kept an answer, or did not name the outputs store: %v", err) } if _, err := ReadOutputFrom(nil)("o"); err == nil { t.Fatal("no store read an answer")