diff --git a/modules/mesh-delivery-teller/manifest_test.go b/modules/mesh-delivery-teller/manifest_test.go index dcb8d85bf..c88bc7f09 100644 --- a/modules/mesh-delivery-teller/manifest_test.go +++ b/modules/mesh-delivery-teller/manifest_test.go @@ -46,6 +46,7 @@ type manifest struct { Packages map[string]string `json:"packages"` Module string `json:"module"` Version string `json:"version"` + Class string `json:"class"` Slug string `json:"slug"` Tools []string `json:"tools"` Emits []string `json:"emits"` @@ -94,6 +95,10 @@ func TestManifestDeclarations(t *testing.T) { // 1240/AC1 if m.Module != "mesh-delivery-teller" { t.Errorf("module = %q", m.Module) } + // design 47 H2 §810, §814; H-A-394 (1): it claims no seat, so its class is leaf. + if m.Class != "leaf" { + t.Errorf("class = %q, want leaf", m.Class) + } // answers is the teller's answer to each ask; asked is what it asked of the router, which condition it raised and which // ask key and revision each ask was made at (issue 1343); ends is the ends asked by hand with teller_end_ask (issue 774). // first-views is where its first view of the assigner's asks stands and findings its condition past the bound (ADR 0615). @@ -269,11 +274,11 @@ type require struct { } // findingRequires is the findings state and the finding stream a module asks for by their templates (design 47 G -// §383, §387; A-30): 7 days and 16 MiB, the findings state keeping the given history. +// §383, §387; A-30): 7 days and 8 MiB (design 47 H2 §820), the findings state keeping the given history. func findingRequires(history float64) []require { return []require{ {Name: "findings", Storage: "key-value", Template: "state", Options: map[string]any{"history": history}}, {Name: "finding-events", Storage: "stream", Template: "events", Options: map[string]any{ - "events": []any{"finding-written.*", "finding-cleared.*", "findings-stated.*"}, "max-age-days": float64(7), "max-mib": float64(16)}}, + "events": []any{"finding-written.*", "finding-cleared.*", "findings-stated.*"}, "max-age-days": float64(7), "max-mib": float64(8)}}, } } diff --git a/modules/mesh-delivery-teller/module.json b/modules/mesh-delivery-teller/module.json index b993a0617..8106bc55d 100644 --- a/modules/mesh-delivery-teller/module.json +++ b/modules/mesh-delivery-teller/module.json @@ -1,6 +1,7 @@ { "module": "mesh-delivery-teller", "version": "0.1", + "class": "leaf", "packages": { "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-assigner/asks": "0.3" }, @@ -158,7 +159,7 @@ "findings-stated.*" ], "max-age-days": 7, - "max-mib": 16 + "max-mib": 8 } } ]