From 204cd51e4b553a73bdccdd470c747b23035eac2a Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 25 Nov 2026 17:06:40 +0100 Subject: [PATCH] H1 the-word-from-the-contract: the engine states directory-contents-owner from the seat's contract Builds: design 47 H2 H-A-622, H-A-640 (hq 6b8373ce) --- internal/link/have_test.go | 6 +++--- internal/link/record.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/link/have_test.go b/internal/link/have_test.go index 508cfad9..1568b2fd 100644 --- a/internal/link/have_test.go +++ b/internal/link/have_test.go @@ -383,8 +383,8 @@ func testTheNodeKeyCarriesTheNodesFacts(t *testing.T) { t.Errorf("the record states reads %v and capabilities %v, want the word want:version and no want-parts", got.Record.ManifestReads, got.Record.Capabilities) } // And that it gives a directory's contents the directory's new owner (H-A-556). - if !slices.Contains(got.Record.ManifestReads, catalogue.ReadDirectoryContentsOwner) { - t.Errorf("the record states reads %v, want %s", got.Record.ManifestReads, catalogue.ReadDirectoryContentsOwner) + if !slices.Contains(got.Record.ManifestReads, nodeengine.ManifestReadWordDirectoryContentsOwner) { + t.Errorf("the record states reads %v, want %s", got.Record.ManifestReads, nodeengine.ManifestReadWordDirectoryContentsOwner) } // Among them, that it fills a seat's reach from the seat holder's listen (ADR 0632 §1). // And the words and forms it builds (design 42 zfs-owns-zfs §4, answer A-13). @@ -1064,7 +1064,7 @@ func slicesIndex(rs []ResourceHealth, id string) int { // that it gives a directory's contents its new owner (H-A-556). func statedReads() []string { return slices.Sorted(slices.Values(append(catalogue.ManifestReads(), nodeengine.ManifestReadWordWantVersion, - catalogue.ReadDirectoryContentsOwner))) + nodeengine.ManifestReadWordDirectoryContentsOwner))) } // TestHave runs this file's tests, each a subtest named as its function was (design 47 H2 §819, the test budget). diff --git a/internal/link/record.go b/internal/link/record.go index 8cc45ee6..a575490d 100644 --- a/internal/link/record.go +++ b/internal/link/record.go @@ -60,7 +60,7 @@ func readsNow() []string { set[nodeengine.ManifestReadWordWantVersion] = true // And that it gives a directory's contents the directory's new owner (internal/apply giveContents; H-A-556): a module // declaring runs-as needs it, so its move waits for this engine on its node. - set[catalogue.ReadDirectoryContentsOwner] = true + set[nodeengine.ManifestReadWordDirectoryContentsOwner] = true for r := range set { out = append(out, r) }