From a882051de68d64d8fbe147df603af4d6939b4d0f Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 22 Nov 2026 00:28:21 +0100 Subject: [PATCH] M: the node-engine's manifest declares its class, core MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gate reads a mover's class from its manifest, and a module that claims a seat carries a contract of the mesh: the node-engine claims the seat node-engine, so it is core. An engine before it cannot state the word, so this build's one hold for a yes at its delivery covers it too. Builds: design 47 H2 §810, §814; H-A-394 (1) --- module.json | 1 + packaging/operator_keys_test.go | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/module.json b/module.json index e0392d39..088d8463 100644 --- a/module.json +++ b/module.json @@ -2,6 +2,7 @@ "module": "mesh-host", "version": "0.1", "slug": "host", + "class": "core", "declaration-reads": 2, "build": { "artifacts": [ diff --git a/packaging/operator_keys_test.go b/packaging/operator_keys_test.go index 1cf41516..5987bbeb 100644 --- a/packaging/operator_keys_test.go +++ b/packaging/operator_keys_test.go @@ -116,16 +116,20 @@ func TestTheManifestConsumesTheBackupEvent(t *testing.T) { t.Fatal(err) } // ADR 0614 §4: the node-engine's own manifest uses only words every running engine reads (the baseline, what an engine - // stating none is read as), so its new build is never held for a word only it reads; but for the declaration Version it - // reads, which an engine before it cannot state, so its build is held for a yes once at that delivery (H-A-388 and - // its addendum). + // stating none is read as), so its new build is never held for a word only it reads; but for its class and the + // declaration Version it reads, which an engine before them cannot state, so its build is held for a yes once at that + // delivery (H-A-388 and its addendum, H-A-394). if needs, err := catalogue.ManifestNeeds(raw); err != nil || len(needs) == 0 { t.Fatalf("the manifest's needs: %v, %v", needs, err) - } else if missing := catalogue.MissingManifestReads(needs, nil); !slices.Equal(missing, []string{"word:declaration-reads"}) { + } else if missing := catalogue.MissingManifestReads(needs, nil); !slices.Equal(missing, []string{"word:class", "word:declaration-reads"}) { t.Errorf("the manifest needs %v, which an engine stating nothing does not read: its new build would be held", missing) } // Design 47 H2 §813 (12), H-A-388: it states the declaration Version it reads, the one its contract parses, so the // delivery plan orders the composer that writes that Version after it. + // H-A-394 (1): a module that claims a seat is core. + if parsed, err := catalogue.Decode(raw); err != nil || parsed.Class != catalogue.ClassCore { + t.Errorf("the manifest's class is %q, and the node-engine claims a seat (%v)", parsed.Class, err) + } if parsed, err := catalogue.Decode(raw); err != nil || parsed.DeclarationReads != declaration.Version { t.Errorf("the manifest states it reads declaration Version %d, and the engine reads %d (%v)", parsed.DeclarationReads, declaration.Version, err) }