H-A-458 (2): answer the composition's drift through the seat's contract

The verb composition's drift, the directory entries the mesh made whose
owner or mode on disk differ, was the engine's own DriftView, a field the
node-engine seat's definition did not have. The definition now carries
drift (id, path, drift) at form 4, and the engine answers it as the
generated CompositionAnswerDriftItem; DriftView goes. Row: the answer read
back through the contract's decoder names the drift.

Review round 1, finding: drift in the composition answer.

Builds: design 47 H2 §813; H-A-374, H-A-392 (b), H-A-458 (2)
This commit is contained in:
2026-11-22 02:58:22 +01:00
parent 213542192c
commit 3b1f5a07d2
4 changed files with 14 additions and 16 deletions
+3 -3
View File
@@ -558,7 +558,7 @@ func nodeAgent(ctx context.Context, opts options, signer ed25519.PublicKey, trus
say(line)
}
},
DirectoryDrift: func(runs compositions.Composed) []agent.DriftView {
DirectoryDrift: func(runs compositions.Composed) []nodeengine.CompositionAnswerDriftItem {
d, err := declarationOf(runs)
if err != nil {
return nil
@@ -567,9 +567,9 @@ func nodeAgent(ctx context.Context, opts options, signer ed25519.PublicKey, trus
if err != nil {
return nil
}
var out []agent.DriftView
var out []nodeengine.CompositionAnswerDriftItem
for _, x := range apply.DirectoryDrifts(d, known) {
out = append(out, agent.DriftView{ID: x.ID, Path: x.Path, Drift: x.Drift})
out = append(out, nodeengine.CompositionAnswerDriftItem{ID: x.ID, Path: x.Path, Drift: x.Drift})
}
return out
},