H-A-335: a held module's share of a holder's words is what runs
The reads runtime on ace restarted twice in two minutes because its MESH_SECRET_PLACES changed: the holders of node-reads and node-files were told the node's secret places and owned paths from held modules' stubs, which differ pass by pass while a part is withheld. While a module is held, the resolution now takes its share from each runtime process as it runs: the secret places are those the modules not held compose merged with every place that runs, and the owned paths keep each running entry a held module owns. Two passes with the same held set compose every runtime process the same; a module that answered and changed is still composed from its build. Builds: design 47 H H-A-335, H-A-337, H-A-306 (2), (3)
This commit is contained in:
@@ -477,6 +477,8 @@ func readBase(ctx context.Context, r Reader, mesh Mesh, s Scope) (base, error) {
|
||||
n.RunsTools = compose.ToolsRunning(s.Running)
|
||||
// And the runtime's process as it runs, whose slice of each held module is kept verbatim (H-A-306).
|
||||
n.RunsRuntime = compose.RuntimeRunning(s.Running)
|
||||
// And every runtime process as it runs, whose words give each held module's share of a holder's (H-A-335).
|
||||
n.RunsRuntimes = compose.RuntimesRunning(s.Running)
|
||||
for _, module := range s.InOwn {
|
||||
if n.InOwn == nil {
|
||||
n.InOwn = map[string]bool{}
|
||||
|
||||
Reference in New Issue
Block a user