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:
@@ -283,7 +283,6 @@ func runningModuleWithoutEntryStandsAsTheNewestBuild(t *testing.T) {
|
||||
have string // A-482: the phase its have says, naming the build it runs ("" for none)
|
||||
named string // A-480a: the manifest its running event names ("held": one this node holds, "unread": one it does not)
|
||||
}{
|
||||
{"runs, newest entry held", true, newest, true, true, old, false, false, "", ""},
|
||||
{"not running here", false, newest, true, false, old, false, false, "", ""},
|
||||
{"names no newer build", true, "", false, false, old, false, false, "", ""},
|
||||
{"newest entry not held", true, newest, false, false, old, false, false, "", ""},
|
||||
@@ -310,7 +309,7 @@ func runningModuleWithoutEntryStandsAsTheNewestBuild(t *testing.T) {
|
||||
})
|
||||
c := New(env)
|
||||
c.mu.Lock()
|
||||
c.wants["postgres"] = meshwants.WantsByWantNodeModuleValue{Fp: old, Newest: tc.newest}
|
||||
c.wants["postgres"] = meshwants.WantsByWantNodeModuleValue{Fp: old}
|
||||
c.assignments["n1"] = meshmoduleassigner.Assignments{Node: "n1", Modules: []meshmoduleassigner.PlacedModule{{Module: "postgres"}}}
|
||||
if tc.runs {
|
||||
c.heard = map[string]map[string]heardRun{"n1": {"postgres": {fingerprint: old}}}
|
||||
|
||||
Reference in New Issue
Block a user