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)
This commit is contained in:
2026-11-25 17:06:40 +01:00
parent 3753d4d5dc
commit 204cd51e4b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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).
+1 -1
View File
@@ -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)
}