Claim composition-diff among the node-engine seat's verbs

The group's node-engine seat defines composition-diff, and the engine has
answered it since E5, but its claim did not name it, so the manifest
validator refused the manifest: the seat's protocol promises a verb the
claim does not serve. The claim serves it, and the manifest test holds the
claim to every verb of the seat's contract.

Builds: design 47 H2 §813 (3); H-A-349 DQ-12b, H-A-355 (2), H-A-392; mesh-contracts feat/47-H2 3fbe3361 (the seat's composition-diff)
This commit is contained in:
2026-11-22 00:36:33 +01:00
parent 0c01c81c3f
commit 0aff33d617
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@
"acts",
"packages",
"composition",
"composition-diff",
"compose",
"compose-candidate",
"manifest-reads",
+21
View File
@@ -8,6 +8,7 @@ import (
"strings"
"testing"
"git.novox.be/novox/mesh-contracts/go/seats/nodeengine"
"git.novox.be/novox/mesh-sdk/go/catalogue"
"git.novox.be/novox/mesh-sdk/go/declaration"
)
@@ -126,6 +127,26 @@ func testTheManifestConsumesTheBackupEvent(t *testing.T) {
}
// 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.
// The claim of node-engine serves every verb the seat's contract defines, composition-diff among them (the H2 K row of
// mesh-contracts, H-A-355 (2), H-A-392): a claim short of one is refused by the manifest validator.
if parsed, err := catalogue.Decode(raw); err == nil {
var serves []string
for _, c := range parsed.Claims {
if c.Name == nodeengine.Seat {
serves = c.Serves
}
}
for _, verb := range []string{nodeengine.VerbHandOver, nodeengine.VerbAccessAct, nodeengine.VerbJudgeDirectories,
nodeengine.VerbSetuidSearch, nodeengine.VerbRootFree, nodeengine.VerbActs, nodeengine.VerbPackages,
nodeengine.VerbComposition, nodeengine.VerbCompositionDiff, nodeengine.VerbCompose, nodeengine.VerbComposeCandidate,
nodeengine.VerbManifestReads, nodeengine.VerbApplyOrder, nodeengine.VerbSeatList, nodeengine.VerbSeatListAgain,
nodeengine.VerbFirstViews, nodeengine.VerbFirstViewAgain, nodeengine.VerbEntryAgain, nodeengine.VerbProcessBuilds,
nodeengine.VerbConverged} {
if !slices.Contains(serves, verb) {
t.Errorf("the claim of %s does not serve %s: %v", nodeengine.Seat, verb, serves)
}
}
}
// 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)