M-class (grants): the grants part's manifest says class core

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)
This commit is contained in:
2026-11-22 02:47:46 +01:00
parent bb1ab9f10d
commit 8c50d77b04
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -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
+1
View File
@@ -1,6 +1,7 @@
{
"module": "mesh-grants",
"version": "0.1",
"class": "core",
"slug": "grants",
"claims": [
{