diff --git a/modules/mesh-delivery-assigner/manifest_test.go b/modules/mesh-delivery-assigner/manifest_test.go index ab95812aa..78e7c0943 100644 --- a/modules/mesh-delivery-assigner/manifest_test.go +++ b/modules/mesh-delivery-assigner/manifest_test.go @@ -73,6 +73,17 @@ func TestManifest(t *testing.T) { "engine-reads": 1, "written": 5, "waits": 5, "put-waits": 1, "inputs": 1, "composition-runs": 1, "taken": 1}; !reflect.DeepEqual(states, want) { t.Errorf("state = %v, want %v", states, want) } + // design 47 H2 §810, §812, §814; H-A-394 (1), H-A-437: it claims a seat, so its class is core, and every state names its + // cap: 8 MiB, 16 where the live fill passed 2 MiB (findings 3.35, proposals 3.48 MiB on 2026-11-22), as set before for inputs and composition-runs. + caps := map[string]int{} + for _, s := range m.State { + caps[s.Name] = s.MaxMiB + } + if want := map[string]int{"asks": 8, "differences": 8, "puts": 8, "wants": 8, + "assignments": 8, "placement": 8, "copies": 8, "proposals": 16, "candidates": 8, "pulses": 8, "findings": 16, "policies": 8, "seat-holders": 8, views.MarksState: 8, views.StatusState: 8, + "engine-reads": 8, "written": 8, "waits": 8, "put-waits": 8, "inputs": 64, "composition-runs": 64, "taken": 8}; !reflect.DeepEqual(caps, want) || m.Class != catalogue.ClassCore { + t.Errorf("class %q, caps = %v, want core and %v", m.Class, caps, want) + } if _, ok := m.OwnSecrets["broker"]; !ok || len(m.OwnSecrets) != 1 { t.Errorf("own-secrets = %v, want exactly broker (or no credential is issued)", m.OwnSecrets) } diff --git a/modules/mesh-delivery-assigner/module.json b/modules/mesh-delivery-assigner/module.json index b6a11c4b4..1c5ce91f9 100644 --- a/modules/mesh-delivery-assigner/module.json +++ b/modules/mesh-delivery-assigner/module.json @@ -1,6 +1,7 @@ { "module": "mesh-delivery-assigner", "version": "0.3", + "class": "core", "slug": "assigner", "runs-as": "mesh-delivery-assigner", "claims": [ @@ -139,25 +140,25 @@ "assigner_validate_before" ], "state": [ - { "name": "assignments", "history": 64 }, - { "name": "placement", "history": 64 }, - { "name": "copies", "history": 1 }, - { "name": "proposals", "history": 5 }, - { "name": "candidates", "history": 5 }, - { "name": "pulses", "key-ttl": true }, - { "name": "asks", "history": 5 }, - { "name": "differences", "history": 64 }, - { "name": "puts", "history": 20 }, - { "name": "wants", "history": 20 }, - { "name": "findings", "history": 5 }, - { "name": "policies", "history": 20 }, - { "name": "seat-holders", "history": 5 }, - { "name": "view-marks", "history": 1 }, - { "name": "first-views", "history": 1 }, - { "name": "engine-reads", "history": 1 }, - { "name": "written", "history": 5 }, - { "name": "waits", "history": 5 }, - { "name": "put-waits", "history": 1 }, + { "name": "assignments", "history": 64, "max-mib": 8 }, + { "name": "placement", "history": 64, "max-mib": 8 }, + { "name": "copies", "history": 1, "max-mib": 8 }, + { "name": "proposals", "history": 5, "max-mib": 16 }, + { "name": "candidates", "history": 5, "max-mib": 8 }, + { "name": "pulses", "key-ttl": true, "max-mib": 8 }, + { "name": "asks", "history": 5, "max-mib": 8 }, + { "name": "differences", "history": 64, "max-mib": 8 }, + { "name": "puts", "history": 20, "max-mib": 8 }, + { "name": "wants", "history": 20, "max-mib": 8 }, + { "name": "findings", "history": 5, "max-mib": 16 }, + { "name": "policies", "history": 20, "max-mib": 8 }, + { "name": "seat-holders", "history": 5, "max-mib": 8 }, + { "name": "view-marks", "history": 1, "max-mib": 8 }, + { "name": "first-views", "history": 1, "max-mib": 8 }, + { "name": "engine-reads", "history": 1, "max-mib": 8 }, + { "name": "written", "history": 5, "max-mib": 8 }, + { "name": "waits", "history": 5, "max-mib": 8 }, + { "name": "put-waits", "history": 1, "max-mib": 8 }, { "name": "inputs", "history": 1, "max-mib": 64 }, { "name": "composition-runs", "history": 1, "key-ttl": true, "max-mib": 64 }, { "name": "taken", "history": 1, "key-ttl": true, "max-mib": 8 }