diff --git a/go/seats/nodeengine/contract.go b/go/seats/nodeengine/contract.go index 36296cf..95f3682 100644 --- a/go/seats/nodeengine/contract.go +++ b/go/seats/nodeengine/contract.go @@ -14,13 +14,13 @@ const Seat = "node-engine" // Form is the form of the seat's values, events and answers this contract was generated at (design 47 H2 §780): // a reader of a value of another form says "form N, this reader knows M". -const Form = 3 +const Form = 4 // The forms and the digest of the fields this contract was generated from: the generator's compare fails a definition // whose fields changed while its forms did not (design 47 H2 §780). const ( - generatedForms = "3" - generatedFieldsDigest = "AccessActAnswer=aba938323932 AccountsHanded=01f7505e0e41 Act=e6b24e6abd5f ActSaid=2bbc5ba1bb68 Acts=0f9a96c475ff ActsAnswer=ba7fb8de22ff Adoption=12d04d378fef ApplyOrderAnswer=24e631ec9059 ApplyOrderAnswerOrderItem=6cbde55cd9a7 Asked=9dc3b3e17562 AskedEvent=0e155c7e6cc6 AttachedNetwork=eb233c4eb030 BoundsByWhatIDValue=8fc4fb4c306c CandidateAdded=8a47761c2b87 CandidateAnswer=c4f359547d7c CandidateBodies=3212f3397a2f CandidateDiffers=eb09cbc3ccbd CandidateRefusal=e909c9f6cd19 ComposeAnswer=dc1b3a485ad8 ComposeAnswerPass=82e6b2612862 ComposeCandidateAnswer=dfbbe49d1170 Composed=a0496a1b4293 ComposedByNodeModuleFingerprintValue=c5232f26d312 ComposedByNodeNodeValue=92ce08a2aa61 ComposedEvent=c9a05c369a2d CompositionAnswer=455cbb2576bc CompositionAnswerAttempt=38f25294eb7f CompositionAnswerHave=2b07bbb37a49 CompositionAnswerJudged=ad566939781a CompositionAnswerOwn=a8154421db58 CompositionAnswerRuns=3a70c8e06e7e CompositionAnswerWant=aefc6253201d CompositionAnswerWithheldItem=28eae88e46de CompositionAnswerWithheldPartsItem=79f37133d5be CompositionDiffAnswer=b922d22f9cee CompositionDiffEntry=ac7c1fd3ea62 CompositionDiffResource=e31a58d6b2b5 ConvergedAnswer=378c6aea0436 DataByNodeModuleValue=155c8dd0a6e5 DeclaredGroup=22c955571ed0 DeclaredIdentity=442e5ea22995 DeclaredLibrary=234c8b6973d8 DoneEvent=0e155c7e6cc6 EntryAgainAnswer=1f1a24957164 EntryAgainAnswerAsked=bec32f015550 FailedUnit=4b7afe8c0f84 FindingAction=2bab6a7c8d3f FindingEvidence=f65231e1f862 FindingSubject=11e82b0a77d6 FindingsByKeyValue=41e93a483c67 FirstViewAgainAnswer=22627a4a4678 FirstViewAgainAnswerAsked=0fa827c2bc13 FirstViewsAnswer=3a1fe57c7be6 FirstViewsAnswerEntriesItem=8b117619ca3f FirstViewsAnswerWantsItem=d8cb80636647 HandOverAnswer=aba938323932 HaveByNodeModuleValue=256422cac3ca HaveByNodeNodeValue=9296a55d7aa6 HealthByNodeValue=03bfa8c83d5b JudgeDirectoriesAnswer=f590024f1e91 LoginFallback=78e280ece645 ManifestReadsAnswer=44ff978272b4 ManifestReadsChanged=fac832ea55d0 ManifestReadsChangedEvent=88e4af52759d Module=e604719b1fb3 NetworkHealth=3af75f8af8d7 NetworkPart=502939443fb6 NodeAccount=1faabd57fa41 NodeDirectory=12b7f58b657c NodeOwn=4fecee42b3c0 NodeRecord=13f2a683c1bf PackagesAnswer=e4128836129d PackagesAnswerKey=60572f6eefc3 PackagesAnswerKeyPackagesItem=955a58e4952f PackagesByNodeValue=4cdc8f8bdc58 PackagesByNodeValuePackagesItem=955a58e4952f PeerSeen=43e6f359f1aa PlacedDataItem=82d650fb9d31 ProcessBuild=133a0f6e81cf ProcessBuilds=32cfa418abfd ProcessBuildsAnswer=4ac4ce32fbeb PullWait=99288cc066ec RefusedEvent=0e155c7e6cc6 Revision=165e37beccf5 RootAccountVerdict=7a8c0d2e5b9a RootFreeAnswer=c83678c70792 RootVerdict=0855e131d15c Running=8a19fd7f6446 RunningEvent=f3d8fedcfd51 Said=634cca3367f2 SealedBox=2c687c69b978 SeatList=248a1dc3029b SeatListAgainAnswer=8eb7fbcb7018 SeatListAnswer=8eb7fbcb7018 SeatListHeld=6b5c0f8ddcc2 SeatListStatus=bfbb572c49dd SetuidSearchAnswer=f590024f1e91 UnitsHealth=0d9cf7be9bc7 UserListWritten=caae94077890 Wait=fc85cf95ac27 WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0" + generatedForms = "4" + generatedFieldsDigest = "AccessActAnswer=aba938323932 AccountsHanded=01f7505e0e41 Act=e6b24e6abd5f ActSaid=2bbc5ba1bb68 Acts=0f9a96c475ff ActsAnswer=ba7fb8de22ff Adoption=12d04d378fef ApplyOrderAnswer=24e631ec9059 ApplyOrderAnswerOrderItem=6cbde55cd9a7 Asked=9dc3b3e17562 AskedEvent=0e155c7e6cc6 AttachedNetwork=eb233c4eb030 BoundsByWhatIDValue=8fc4fb4c306c CandidateAdded=8a47761c2b87 CandidateAnswer=c4f359547d7c CandidateBodies=3212f3397a2f CandidateDiffers=eb09cbc3ccbd CandidateRefusal=e909c9f6cd19 ComposeAnswer=dc1b3a485ad8 ComposeAnswerPass=82e6b2612862 ComposeCandidateAnswer=dfbbe49d1170 Composed=a0496a1b4293 ComposedByNodeModuleFingerprintValue=c5232f26d312 ComposedByNodeNodeValue=92ce08a2aa61 ComposedEvent=c9a05c369a2d CompositionAnswer=47116fe980f9 CompositionAnswerAttempt=38f25294eb7f CompositionAnswerDriftItem=09b7f8553918 CompositionAnswerHave=2b07bbb37a49 CompositionAnswerJudged=ad566939781a CompositionAnswerOwn=a8154421db58 CompositionAnswerRuns=3a70c8e06e7e CompositionAnswerWant=aefc6253201d CompositionAnswerWithheldItem=28eae88e46de CompositionAnswerWithheldPartsItem=79f37133d5be CompositionDiffAnswer=b922d22f9cee CompositionDiffEntry=ac7c1fd3ea62 CompositionDiffResource=e31a58d6b2b5 ConvergedAnswer=378c6aea0436 DataByNodeModuleValue=155c8dd0a6e5 DeclaredGroup=22c955571ed0 DeclaredIdentity=442e5ea22995 DeclaredLibrary=234c8b6973d8 DoneEvent=0e155c7e6cc6 EntryAgainAnswer=1f1a24957164 EntryAgainAnswerAsked=bec32f015550 FailedUnit=4b7afe8c0f84 FindingAction=2bab6a7c8d3f FindingEvidence=f65231e1f862 FindingSubject=11e82b0a77d6 FindingsByKeyValue=41e93a483c67 FirstViewAgainAnswer=22627a4a4678 FirstViewAgainAnswerAsked=0fa827c2bc13 FirstViewsAnswer=3a1fe57c7be6 FirstViewsAnswerEntriesItem=8b117619ca3f FirstViewsAnswerWantsItem=d8cb80636647 HandOverAnswer=aba938323932 HaveByNodeModuleValue=b499318c2374 HaveByNodeNodeValue=9296a55d7aa6 HealthByNodeValue=03bfa8c83d5b JudgeDirectoriesAnswer=f590024f1e91 LoginFallback=78e280ece645 ManifestReadsAnswer=44ff978272b4 ManifestReadsChanged=fac832ea55d0 ManifestReadsChangedEvent=88e4af52759d Module=e604719b1fb3 NetworkHealth=3af75f8af8d7 NetworkPart=502939443fb6 NodeAccount=1faabd57fa41 NodeDirectory=12b7f58b657c NodeOwn=4fecee42b3c0 NodeRecord=13f2a683c1bf PackagesAnswer=e4128836129d PackagesAnswerKey=60572f6eefc3 PackagesAnswerKeyPackagesItem=955a58e4952f PackagesByNodeValue=4cdc8f8bdc58 PackagesByNodeValuePackagesItem=955a58e4952f PeerSeen=43e6f359f1aa PlacedDataItem=82d650fb9d31 ProcessBuild=133a0f6e81cf ProcessBuilds=32cfa418abfd ProcessBuildsAnswer=4ac4ce32fbeb PullWait=99288cc066ec RefusedEvent=0e155c7e6cc6 Revision=165e37beccf5 RootAccountVerdict=7a8c0d2e5b9a RootFreeAnswer=c83678c70792 RootVerdict=0855e131d15c Running=8a19fd7f6446 RunningEvent=f3d8fedcfd51 Said=634cca3367f2 SealedBox=2c687c69b978 SeatList=248a1dc3029b SeatListAgainAnswer=8eb7fbcb7018 SeatListAnswer=8eb7fbcb7018 SeatListHeld=6b5c0f8ddcc2 SeatListStatus=bfbb572c49dd SetuidSearchAnswer=f590024f1e91 UnitsHealth=0d9cf7be9bc7 UserListWritten=caae94077890 Wait=fc85cf95ac27 WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0" ) const ( @@ -1272,6 +1272,16 @@ type CompositionAnswerAttempt struct { WantRevision int64 `json:"want_revision"` } +// CompositionAnswerDriftItem is a type of the contract. +type CompositionAnswerDriftItem struct { + // how its owner or mode on disk differ, in words + Drift string `json:"drift"` + // the directory entry's id in the composition + ID string `json:"id"` + // its path on the machine + Path string `json:"path"` +} + // CompositionAnswerHave is what the module's have key says now; absent when it says nothing. type CompositionAnswerHave struct { // digest @@ -1371,6 +1381,8 @@ type CompositionAnswer struct { Composition Revision `json:"composition"` // every resource that differs from what runs, when asked Diff []map[string]any `json:"diff,omitempty"` + // 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-392 (b), H-A-458 (2)): read-only; the engine sets it right at its next start or apply of the module + Drift []CompositionAnswerDriftItem `json:"drift,omitempty"` // is the form of what this value carries, left out while it is 1 (design 47 H2 §780). Form int64 `json:"form,omitempty"` // what the module's have key says now; absent when it says nothing @@ -1749,7 +1761,9 @@ type HaveByNodeModuleValue struct { // what the node keeps of the module as it runs Kept []string `json:"kept,omitempty"` // how far it has come - Phase string `json:"phase"` + Phase string `json:"phase"` + // the pipeline of the want the module was applied from, its key ., beside its run (H-A-429 (1), H-A-458 (1)): a want's run is compared with this run only when the want names the same; absent for a want in none + Pipeline string `json:"pipeline,omitempty"` PullWait *PullWait `json:"pull-wait,omitempty"` // the composition run's pipeline sequence, in decimal, the module was applied from (design 47 H2 §813 (1), H-A-388): a restarted engine applies no older run again Run string `json:"run,omitempty"` diff --git a/go/seats/nodeengine/contract_test.go b/go/seats/nodeengine/contract_test.go index aaed871..a264779 100644 --- a/go/seats/nodeengine/contract_test.go +++ b/go/seats/nodeengine/contract_test.go @@ -83,7 +83,7 @@ func TestFixtures(t *testing.T) { decode: func(b []byte) (any, error) { var v HaveByNodeModuleValue; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, {name: "a move waiting for a person's yes", subject: "", given: "{\"build-alone\":true,\"composed\":\"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"fp\":\"src2:62756c6c6462756c6c6462756c6c6462756c6c6462756c6c6462756c6c646275\",\"health\":\"ok\",\"judgement\":\"recreates\",\"kept\":[\"tool runner not declared\"],\"phase\":\"waiting-yes\",\"v\":1,\"waits\":\"sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"}", wire: "{\"build-alone\":true,\"composed\":\"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"fp\":\"src2:62756c6c6462756c6c6462756c6c6462756c6c6462756c6c6462756c6c646275\",\"health\":\"ok\",\"judgement\":\"recreates\",\"kept\":[\"tool runner not declared\"],\"phase\":\"waiting-yes\",\"v\":1,\"waits\":\"sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"}", decode: func(b []byte) (any, error) { var v HaveByNodeModuleValue; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, - {name: "a module applied from a composition run names the run (design 47 H2 §813 (1), H-A-388)", subject: "", given: "{\"fp\":\"src2:62756c6c6462756c6c6462756c6c6462756c6c6462756c6c6462756c6c646275\",\"health\":\"ok\",\"phase\":\"running\",\"run\":\"178\",\"v\":1}", wire: "{\"fp\":\"src2:62756c6c6462756c6c6462756c6c6462756c6c6462756c6c6462756c6c646275\",\"health\":\"ok\",\"phase\":\"running\",\"run\":\"178\",\"v\":1}", + {name: "a module applied from a composition run names the run and its pipeline (design 47 H2 §813 (1), H-A-388, H-A-458 (1))", subject: "", given: "{\"fp\":\"src2:62756c6c6462756c6c6462756c6c6462756c6c6462756c6c6462756c6c646275\",\"health\":\"ok\",\"phase\":\"running\",\"pipeline\":\"main.mesh-host\",\"run\":\"178\",\"v\":1}", wire: "{\"fp\":\"src2:62756c6c6462756c6c6462756c6c6462756c6c6462756c6c6462756c6c646275\",\"health\":\"ok\",\"phase\":\"running\",\"pipeline\":\"main.mesh-host\",\"run\":\"178\",\"v\":1}", decode: func(b []byte) (any, error) { var v HaveByNodeModuleValue; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, {name: "the bus module's have carries the user list written (typed from the engine's values)", subject: "", given: "{\"health\":\"ok\",\"phase\":\"running\",\"user-list\":{\"at\":\"2026-11-05T12:00:00Z\",\"digest\":\"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"follows\":\"grants\",\"handed\":{\"at\":\"2026-11-05T12:00:00Z\",\"box\":{\"ct\":\"c\",\"eph\":\"e\",\"iv\":\"i\",\"tag\":\"t\",\"v\":1},\"from\":\"ace\",\"to\":\"sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\",\"users\":3},\"key\":\"-----BEGIN PUBLIC KEY-----\",\"revision\":7,\"source\":\"user-list\",\"users\":3,\"wanted\":\"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"},\"v\":1}", wire: "{\"health\":\"ok\",\"phase\":\"running\",\"user-list\":{\"at\":\"2026-11-05T12:00:00Z\",\"digest\":\"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"follows\":\"grants\",\"handed\":{\"at\":\"2026-11-05T12:00:00Z\",\"box\":{\"ct\":\"c\",\"eph\":\"e\",\"iv\":\"i\",\"tag\":\"t\",\"v\":1},\"from\":\"ace\",\"to\":\"sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\",\"users\":3},\"key\":\"-----BEGIN PUBLIC KEY-----\",\"revision\":7,\"source\":\"user-list\",\"users\":3,\"wanted\":\"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"},\"v\":1}", decode: func(b []byte) (any, error) { var v HaveByNodeModuleValue; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, @@ -137,6 +137,8 @@ func TestFixtures(t *testing.T) { decode: func(b []byte) (any, error) { var v ConvergedAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, {name: "composition names the filter part kept because allowed did not answer", subject: "", given: "{\"composition\":{\"key\":\"\"},\"judged\":{\"judgement\":\"\",\"waits_for_yes\":false,\"words\":\"\"},\"module\":\"nftables\",\"node\":\"desk\",\"started\":true,\"withheld-parts\":[{\"part\":\"node-packet-filter.allowed\",\"why\":\"asked of the seat node-packet-filter's verb allowed on desk, which did not answer within 10s\"}]}", wire: "{\"composition\":{\"key\":\"\"},\"judged\":{\"judgement\":\"\",\"waits_for_yes\":false,\"words\":\"\"},\"module\":\"nftables\",\"node\":\"desk\",\"started\":true,\"withheld-parts\":[{\"part\":\"node-packet-filter.allowed\",\"why\":\"asked of the seat node-packet-filter's verb allowed on desk, which did not answer within 10s\"}]}", decode: func(b []byte) (any, error) { var v CompositionAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, + {name: "composition with diff names a directory the mesh made whose mode drifted (H-A-392 (b), H-A-458 (2))", subject: "", given: "{\"composition\":{\"key\":\"\"},\"drift\":[{\"drift\":\"mode 0700, 0711 declared\",\"id\":\"postgres.data\",\"path\":\"/srv/db\"}],\"judged\":{\"judgement\":\"\",\"waits_for_yes\":false,\"words\":\"\"},\"module\":\"postgres\",\"node\":\"desk\",\"started\":true}", wire: "{\"composition\":{\"key\":\"\"},\"drift\":[{\"drift\":\"mode 0700, 0711 declared\",\"id\":\"postgres.data\",\"path\":\"/srv/db\"}],\"judged\":{\"judgement\":\"\",\"waits_for_yes\":false,\"words\":\"\"},\"module\":\"postgres\",\"node\":\"desk\",\"started\":true}", + decode: func(b []byte) (any, error) { var v CompositionAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, {name: "composition-diff asks a module against a digest", subject: "", given: "{\"digest\":\"sha256:aa\",\"module\":\"plex\"}", wire: "{\"digest\":\"sha256:aa\",\"module\":\"plex\"}", decode: func(b []byte) (any, error) { var v CompositionDiffInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, {name: "composition-diff answers the entries that differ per resource, a secret masked", subject: "", given: "{\"module\":\"plex\",\"node\":\"ace\",\"other\":{\"digest\":\"sha256:aa\",\"key\":\"plex\",\"revision\":12},\"resources\":[{\"entries\":[{\"name\":\"PLEX_LOG_LEVEL\",\"other\":\"debug\",\"running\":\"info\"},{\"masked\":true,\"name\":\"PLEX_TOKEN\"}],\"resource\":\"service:plex\"}],\"running\":\"sha256:bb\"}", wire: "{\"module\":\"plex\",\"node\":\"ace\",\"other\":{\"digest\":\"sha256:aa\",\"key\":\"plex\",\"revision\":12},\"resources\":[{\"entries\":[{\"name\":\"PLEX_LOG_LEVEL\",\"other\":\"debug\",\"running\":\"info\"},{\"masked\":true,\"name\":\"PLEX_TOKEN\"}],\"resource\":\"service:plex\"}],\"running\":\"sha256:bb\"}", diff --git a/seats/node-engine/fixtures/states.json b/seats/node-engine/fixtures/states.json index 7b99d04..b4a2f3f 100644 --- a/seats/node-engine/fixtures/states.json +++ b/seats/node-engine/fixtures/states.json @@ -346,14 +346,15 @@ } }, { - "name": "a module applied from a composition run names the run (design 47 H2 §813 (1), H-A-388)", + "name": "a module applied from a composition run names the run and its pipeline (design 47 H2 §813 (1), H-A-388, H-A-458 (1))", "of": "state:have/.", "given": { "v": 1, "fp": "src2:62756c6c6462756c6c6462756c6c6462756c6c6462756c6c6462756c6c646275", "phase": "running", "health": "ok", - "run": "178" + "run": "178", + "pipeline": "main.mesh-host" } }, { diff --git a/seats/node-engine/fixtures/verbs.json b/seats/node-engine/fixtures/verbs.json index 23dfb66..acf9e88 100644 --- a/seats/node-engine/fixtures/verbs.json +++ b/seats/node-engine/fixtures/verbs.json @@ -333,6 +333,30 @@ ] } }, + { + "name": "composition with diff names a directory the mesh made whose mode drifted (H-A-392 (b), H-A-458 (2))", + "of": "verb:composition.answer", + "given": { + "node": "desk", + "module": "postgres", + "started": true, + "composition": { + "key": "" + }, + "judged": { + "judgement": "", + "waits_for_yes": false, + "words": "" + }, + "drift": [ + { + "id": "postgres.data", + "path": "/srv/db", + "drift": "mode 0700, 0711 declared" + } + ] + } + }, { "name": "composition-diff asks a module against a digest", "of": "verb:composition-diff.input", diff --git a/seats/node-engine/seat.json b/seats/node-engine/seat.json index a5aac3a..4711ce8 100644 --- a/seats/node-engine/seat.json +++ b/seats/node-engine/seat.json @@ -1,6 +1,6 @@ { "format": 1, - "form": 3, + "form": 4, "seat": "node-engine", "scope": "node", "grain": "whole", @@ -456,6 +456,32 @@ }, "description": "every resource that differs from what runs, when asked" }, + "drift": { + "type": "array", + "description": "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-392 (b), H-A-458 (2)): read-only; the engine sets it right at its next start or apply of the module", + "items": { + "type": "object", + "required": [ + "id", + "path", + "drift" + ], + "properties": { + "id": { + "type": "string", + "description": "the directory entry's id in the composition" + }, + "path": { + "type": "string", + "description": "its path on the machine" + }, + "drift": { + "type": "string", + "description": "how its owner or mode on disk differ, in words" + } + } + } + }, "own": { "type": "object", "properties": { @@ -1334,6 +1360,10 @@ "type": "string", "description": "the composition run's pipeline sequence, in decimal, the module was applied from (design 47 H2 §813 (1), H-A-388): a restarted engine applies no older run again" }, + "pipeline": { + "type": "string", + "description": "the pipeline of the want the module was applied from, its key ., beside its run (H-A-429 (1), H-A-458 (1)): a want's run is compared with this run only when the want names the same; absent for a want in none" + }, "kept": { "type": "array", "items": { diff --git a/ts/seats/nodeengine/index.d.ts b/ts/seats/nodeengine/index.d.ts index 24d9192..debebf7 100644 --- a/ts/seats/nodeengine/index.d.ts +++ b/ts/seats/nodeengine/index.d.ts @@ -887,6 +887,15 @@ export interface CompositionAnswerAttempt { "want_revision": number; } +export interface CompositionAnswerDriftItem { + /** how its owner or mode on disk differ, in words */ + "drift": string; + /** the directory entry's id in the composition */ + "id": string; + /** its path on the machine */ + "path": string; +} + /** what the module's have key says now; absent when it says nothing */ export interface CompositionAnswerHave { /** digest */ @@ -984,6 +993,8 @@ export interface CompositionAnswer { "composition": Revision; /** every resource that differs from what runs, when asked */ "diff"?: Record[]; + /** 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-392 (b), H-A-458 (2)): read-only; the engine sets it right at its next start or apply of the module */ + "drift"?: CompositionAnswerDriftItem[]; /** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */ "form"?: number; /** what the module's have key says now; absent when it says nothing */ @@ -1339,6 +1350,8 @@ export interface HaveByNodeModuleValue { "kept"?: string[]; /** how far it has come */ "phase": "backing-up" | "applying" | "checking" | "running" | "failed" | "removed" | "held" | "waiting-yes"; + /** the pipeline of the want the module was applied from, its key ., beside its run (H-A-429 (1), H-A-458 (1)): a want's run is compared with this run only when the want names the same; absent for a want in none */ + "pipeline"?: string; "pull-wait"?: PullWait; /** the composition run's pipeline sequence, in decimal, the module was applied from (design 47 H2 §813 (1), H-A-388): a restarted engine applies no older run again */ "run"?: string;