From 8c50d77b046f5609d5ec36bdf3af65bcceb6434c Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 22 Nov 2026 02:47:46 +0100 Subject: [PATCH] M-class (grants): the grants part's manifest says class core MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It claims the seat mesh-grants, so its delivery carries a contract of the mesh; the manifest check refuses a seat-claiming manifest with no class. Builds: design 47 H2 §810, §814; H-A-394 (1) --- modules/mesh-grants/grants_test.go | 5 +++-- modules/mesh-grants/module.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/mesh-grants/grants_test.go b/modules/mesh-grants/grants_test.go index 7b710dc2d..812393049 100644 --- a/modules/mesh-grants/grants_test.go +++ b/modules/mesh-grants/grants_test.go @@ -636,8 +636,9 @@ func TestGrants(t *testing.T) { } // The part claims the seat mesh-grants, which serves `grants-for` (design 47 G §401, §441) and `withheld` (design 46 // approval mark §6). - if m.Module != "mesh-grants" || len(m.Claims) != 1 || m.Claims[0].Name != "mesh-grants" || !slices.Equal(m.Claims[0].Serves, []string{"grants-for", "withheld"}) { - t.Errorf("module %q claims %v: the part claims the seat mesh-grants alone, serving grants-for and withheld", m.Module, m.Claims) + // It claims a seat, so its class is core (design 47 H2 §810, §814; H-A-394 (1)). + if m.Module != "mesh-grants" || len(m.Claims) != 1 || m.Claims[0].Name != "mesh-grants" || !slices.Equal(m.Claims[0].Serves, []string{"grants-for", "withheld"}) || m.Class != catalogue.ClassCore { + t.Errorf("module %q claims %v, class %q: the part claims the seat mesh-grants alone, serving grants-for and withheld, class core", m.Module, m.Claims, m.Class) } for _, row := range []struct { what string diff --git a/modules/mesh-grants/module.json b/modules/mesh-grants/module.json index 75b3d55df..835b6bf32 100644 --- a/modules/mesh-grants/module.json +++ b/modules/mesh-grants/module.json @@ -1,6 +1,7 @@ { "module": "mesh-grants", "version": "0.1", + "class": "core", "slug": "grants", "claims": [ {