MH-2b: the node-engine reads the want by the real contract: composed, kept-on and newest go
A want carries no composed digest, no keeping node and no newest build (design 47 H 750, H-A-37): the agent takes the digest from the composition the node made for the want's build, the shadow's resolution around a missing entry (A-405) and KeptBuildOf's keeping node go, and the artifact is fetched from the store. Tests of the removed behaviour go. Builds: design 47 H §750; H-A-37 Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
This commit is contained in:
@@ -269,12 +269,6 @@ func (c *Composer) wantedBuilds() map[string]bool {
|
||||
if module != agent.NodeModule && strings.HasPrefix(w.Fp, meshcatalogclient.SourcePrefix2) {
|
||||
out[w.Fp] = true
|
||||
}
|
||||
// The build its want says is being built describes, for resolution alone, a module whose wanted build has no entry (A-405, A-407).
|
||||
if module != agent.NodeModule && strings.HasPrefix(w.Newest, meshcatalogclient.SourcePrefix2) {
|
||||
if _, named := out[w.Newest]; !named {
|
||||
out[w.Newest] = false
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, mods := range c.heard {
|
||||
for _, run := range mods {
|
||||
@@ -468,19 +462,7 @@ func (c *Composer) layModules() {
|
||||
lay(module, w.Fp)
|
||||
continue
|
||||
}
|
||||
// A module the node runs whose wanted build has no entry stands as the build its want says is being built, for resolution
|
||||
// alone: what that entry provides, claims and requires stands for the running build. Its want stays held (entryHolds), at
|
||||
// the want's fingerprint, and nothing new of it is composed (A-405, A-407).
|
||||
if k, ok := c.keptEnt[w.Newest]; ok && w.Newest != "" && k.entry.Module != "" && c.runsHere(module) {
|
||||
lay(module, w.Newest)
|
||||
if m, laid := modules[module]; laid {
|
||||
m.Fp2 = w.Fp
|
||||
modules[module] = m
|
||||
said = append(said, fmt.Sprintf("%s runs a build whose entry the catalog half does not hold, so the node resolves around it as the build %s its want says is being built; its want stays held", module, w.Newest))
|
||||
}
|
||||
continue
|
||||
}
|
||||
// Running here with no entry of its wanted build and none of the newest: it stands, for resolution alone, as the manifest of
|
||||
// Running here with no entry of its wanted build: it stands, for resolution alone, as the manifest of
|
||||
// the build it runs, from the one place (A-484), so the module that requires what it provides is no "nothing provides";
|
||||
// its want stays held. An answer from the entry of the running build is not laid here: that entry is laid where its module is heard
|
||||
// (above), and laying it for a module that is not (heard nowhere yet, its want moving) made the node compose and apply the move twice
|
||||
|
||||
Reference in New Issue
Block a user