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:
2026-11-21 22:10:50 +01:00
parent 637cfb1fd0
commit 94a2e6ede0
13 changed files with 299 additions and 32 deletions
+5
View File
@@ -278,6 +278,11 @@ type Node struct {
// in catalogue.RuntimeToolEnv, its fingerprint among them) is copied from it verbatim, so a pass that holds a module
// for a part withheld composes the runtime as it runs (design 47 H, H-A-303, H-A-306).
RunsRuntime map[string]string
// RunsRuntimes is the environment of each runtime process as it runs, by its id (RuntimesRunning of what the node
// runs): the tool runner's (`<module>.runtime`) and each runtime of a module of its own account
// (`<module>.own-runtime`); nil when none runs. A held module's share of a holder's words that every module gives a
// share of (the secret places, the owned paths) is taken from them (resolution.Holding; design 47 H, H-A-335, H-A-337).
RunsRuntimes map[string]map[string]string
}
// ComposedHow is how a node-engine composes its node from an Input (Input.ComposedHow).