H-A-374: set a drifted directory the mesh made right at the engine's start
ace's Node toolchain cache directory stood at 0700 against its entry's 0711 while the engine said its composition was unchanged: an unchanged composition is never applied, and the judgement reads the compositions, not the disk. Each module taken as running at the engine's start now has every directory entry its record says the mesh made given its declared owner and mode where they drifted on disk, one journal line each; one the mesh never made stays used as found and is said (issue 339). The verb composition's diff names a drifted directory the mesh made. The agent test that marks modules not composed now waits for every want it marks. Builds: design 47 H2 §813; H-A-374, H-A-392
This commit is contained in:
@@ -185,6 +185,13 @@ type Env struct {
|
||||
// them. The node-engine's filling tells the provisioner's client then to fill again what it refused (mesh-host
|
||||
// internal/filling Knock; ace, 2026-10-25 21:17). Nil tells nothing.
|
||||
Settled func(module string)
|
||||
// TakenAtStart is told, outside the agent's lock, each module taken as running at this start from its have or the
|
||||
// kept declaration, with no apply, and the composition it runs: the node-engine converges the owner and mode of each
|
||||
// record-held directory entry of it (H-A-374, H-A-392). Nil tells nothing.
|
||||
TakenAtStart func(module string, runs compositions.Composed)
|
||||
// DirectoryDrift reads, for the verb composition's diff, each directory entry of runs the mesh made whose owner or
|
||||
// mode on disk differ (apply.DirectoryDrifts, H-A-392). Nil reads none.
|
||||
DirectoryDrift func(runs compositions.Composed) []DriftView
|
||||
// RunsChanged is told, outside the agent's lock, that what runs (Everything) changed other than by an apply or a
|
||||
// removal: once at the start, when the haves and the compositions they name are read, and each time a module is
|
||||
// taken as running from its have or the kept declaration. Like Settled, the filling then tells the provisioner's
|
||||
@@ -1700,6 +1707,7 @@ func (a *Agent) baseline(ctx context.Context, module string, w wantNow, comp com
|
||||
a.running[module] = nodeengine.HaveByNodeModuleValue{Fp: h.FP, Composed: h.Composed, Phase: nodeengineclient.PhaseRunning}
|
||||
a.mu.Unlock()
|
||||
a.runsChanged(module + " was taken from its have")
|
||||
a.takenAtStart(module, comp.C)
|
||||
// Said again, so the session holds the module and its key carries the health this engine judges,
|
||||
// not the one an older engine left there (xorg's unknown on g14 and shanks, 2026-10-25).
|
||||
a.writeHave(ctx, Have{Module: module, FP: h.FP, Composed: h.Composed,
|
||||
@@ -1729,6 +1737,7 @@ func (a *Agent) baseline(ctx context.Context, module string, w wantNow, comp com
|
||||
a.running[module] = nodeengine.HaveByNodeModuleValue{Fp: w.Want.Fp, Composed: w.Composed, Phase: nodeengineclient.PhaseRunning}
|
||||
a.mu.Unlock()
|
||||
a.runsChanged(module + " was taken from the kept declaration")
|
||||
a.takenAtStart(module, comp.C)
|
||||
a.writeHave(ctx, Have{Module: module, FP: w.Want.Fp, Composed: w.Composed, Phase: string(nodeengineclient.PhaseRunning)})
|
||||
return true
|
||||
}
|
||||
@@ -1876,6 +1885,13 @@ func (a *Agent) apply(ctx context.Context, module string, w wantNow, comp compNo
|
||||
a.catchUp(ctx, module, catchUps)
|
||||
}
|
||||
|
||||
// takenAtStart tells TakenAtStart of a module taken as running at this start (H-A-392).
|
||||
func (a *Agent) takenAtStart(module string, runs compositions.Composed) {
|
||||
if a.env.TakenAtStart != nil {
|
||||
a.env.TakenAtStart(module, runs)
|
||||
}
|
||||
}
|
||||
|
||||
// runIsNewer says whether a want's run orders after the run a module was applied from (design 47 H2 §813 (1)): each is
|
||||
// the composition run's pipeline sequence in decimal. A want or an apply without one is not ordered by run, nor is a run
|
||||
// that is no decimal number.
|
||||
|
||||
Reference in New Issue
Block a user