nats: the manifest test reads spent read-only through the SDK's own decoding

Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
2026-11-04 18:14:43 +01:00
parent 0d6d7acaae
commit da0573e124
@@ -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)
}