S5 sdk-objects-cap-option: OptionObjectsCapMiB
mesh/delivery merged: source.main moved to novox/mesh-sdk@93e0a7b50d90
mesh/delivery-group group feat/47-G-reader-release-3 merged: every member is merged
mesh/check checking 9e5bd7e49ca5 on 93e0a7b50d90 | novox/mesh-sdk#192 in group feat/47-G-reader-release-3

Builds: design 47 G §513, §547 (A-343, A-344)

Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
2026-11-13 11:37:35 +01:00
parent 45fb352cbf
commit 9e5bd7e49c
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -50,6 +50,9 @@ const (
OptionAgeDays = "max-age-days"
// OptionCapMiB is the cap of a stream, a bucket or an object store, in MiB.
OptionCapMiB = "max-mib"
// OptionObjectsCapMiB is the cap of a state's objects store `<state>-objects`, in MiB, where the state needs
// another than the one the bus module plans (design 47 G §513, §547).
OptionObjectsCapMiB = "objects-max-mib"
// OptionGrant names the trusted config value granting another module a part of it (ADR 0363 §4, ADR 0592 §9).
OptionGrant = "grant"
// OptionDeliveries is how many times a work queue's message is delivered before it is a dead letter.
+7
View File
@@ -53,3 +53,10 @@ func decodeStrictObjects(raw string) (Manifest, error) {
type errString string
func (e errString) Error() string { return string(e) }
// The option naming a state's objects cap is exported with the bounds the judge checks it by (design 47 G §513, §547).
func TestTheObjectsCapOptionIsNamedWithItsBounds(t *testing.T) {
if OptionObjectsCapMiB != "objects-max-mib" || ObjectsLeastMiB != 1 || ObjectsMostMiB != 8192 {
t.Fatalf("option %q, bounds %d to %d", OptionObjectsCapMiB, ObjectsLeastMiB, ObjectsMostMiB)
}
}