From da0573e124daf6c64575540e83319af2ada760ac Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 4 Nov 2026 18:14:43 +0100 Subject: [PATCH] nats: the manifest test reads spent read-only through the SDK's own decoding Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig --- modules/nats/cmd/nats-tools/manifest_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/nats/cmd/nats-tools/manifest_test.go b/modules/nats/cmd/nats-tools/manifest_test.go index 632e74c6..84c98aa9 100644 --- a/modules/nats/cmd/nats-tools/manifest_test.go +++ b/modules/nats/cmd/nats-tools/manifest_test.go @@ -232,6 +232,11 @@ func TestTheBussManifestMountsItsProgramsIntoTheUpstreamImage(t *testing.T) { if err := json.Unmarshal(raw, &whole); err != nil { t.Fatal(err) } + for _, st := range whole.State { + if (st.Name == "spent") != st.ReadOnly { + t.Errorf("the SDK reads %s read-only %v: spent alone is read-only", st.Name, st.ReadOnly) + } + } if b := whole.ProcessBuses()["keeper"]; !b.Keeps { t.Errorf("the keeper's bus declares no keeps, so it would be composed no bus state to keep (ADR 0626 ยง1): %+v", b) }