E3: compose every setting as the word the one settings reader takes

A module's settings reached its own process only as files its manifest
named, and its tools bundles not at all. The node-engine now composes each
setting the module declares as MESH_CONFIG_<KEY>, its value as text, into
each of its processes' environments and its slice of the tool runner's
MESH_TOOL_ENV alike, and the tool runner's own into its process; the
runner's drain-bound is a Go duration like every time setting.

Builds: design 47 H2 §781; H-A-350 DMC-13, H-A-370, H-A-377
This commit is contained in:
2026-11-22 00:09:04 +01:00
parent 84fc34398a
commit b33061088a
5 changed files with 152 additions and 35 deletions
@@ -1025,6 +1025,11 @@ func resolutionCompose(r mcat.Resolution, with mcat.Rendering, h Holding, filter
if err := contributionsInto(copied, m, contributing, thisMachine, with, r.Capabilities, unplaced); err != nil {
return nil, err
}
// And its settings, each as the word the one settings reader takes it from (design 47 H2 §781, H-A-370), after
// every placeholder pass: a value is the operator's text, never a placeholder to fill.
if err := settingWordsInto(copied, m, with.Settings[m.Module]); err != nil {
return nil, err
}
copied["id"] = m.Module + "." + fmt.Sprint(resource["id"])
// A service saying what it reflects names resources within its own module, so those
// are prefixed too or they would point at nothing.