M-class (teller): class leaf, the finding stream at 8 MiB

The teller claims no seat, so its class is leaf, declared by the same rule;
its finding stream keeps 7 days at 8 MiB, not 16.

Builds: design 47 H2 §810, §820; H-A-394 (1)
This commit is contained in:
2026-11-22 02:48:06 +01:00
parent eb02389d45
commit 1146a6a37f
2 changed files with 9 additions and 3 deletions
@@ -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)}},
}
}
+2 -1
View File
@@ -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
}
}
]