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
+2 -10
View File
@@ -51,8 +51,8 @@ type CompositionView struct {
Diff []judge.ResourceChange `json:"diff,omitempty"`
// Drift is, when the diff is asked, each directory entry of what runs that the mesh made, as its record holds, whose
// owner or mode on disk differ from it (H-A-374, H-A-392): read-only; the engine sets it right at its next start or
// apply of the module.
Drift []DriftView `json:"drift,omitempty"`
// apply of the module. Its form is the node-engine seat's contract's (H-A-458 (2)).
Drift []nodeengine.CompositionAnswerDriftItem `json:"drift,omitempty"`
// Own is, of the node's own composition (module node), its own fields beside what runs names (issue 774: ace's
// own composition dropped the provisioner client's account, and nothing read could show it).
Own *OwnView `json:"own,omitempty"`
@@ -348,14 +348,6 @@ func (a *Agent) revisionsOf(ctx context.Context, key string) ([]compNow, error)
return out, nil
}
// DriftView is one directory entry the mesh made whose owner or mode on disk differ from it, as the verb composition's
// diff names it (H-A-392): its id, its path and how, in words.
type DriftView struct {
ID string `json:"id"`
Path string `json:"path"`
Drift string `json:"drift"`
}
// CompositionDiff answers the node-engine seat's read verb composition-diff (design 47 H2 §813 (3), H-A-349 DQ-12b): one
// module's composition that runs beside another revision of its composition key, given by its revision or its digest,
// as the entries that differ per resource; environment entries by name, a secret's value masked. It changes nothing.