H2 K: the have keeps its run's pipeline; the composition answer says drift
A want's run is ordered only within its pipeline, so the have, the record of what the engine applied, keeps the pipeline of the want it was applied from beside its run; and the composition answer's drift, the directory entries the mesh made whose owner or mode on disk differ, is the contract's own rather than the engine's private shape. Both land in one release, so the seat's form rises once, to 4. Generated with mesh-delivery's seatgen (built from b65b6173's source); seatgen -check clean in all five folders. Fixture rows: a have naming its run and pipeline, and a composition answer with drift. Builds: design 47 H2 §813 (1); H-A-429 (1), H-A-392 (b), H-A-458 (1), H-A-458 (2), H-A-458 addendum
This commit is contained in:
@@ -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 <branch>.<source>, 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"`
|
||||
|
||||
Reference in New Issue
Block a user