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:
2026-11-20 03:09:22 +01:00
parent ee017fe306
commit dd2b3a16df
14 changed files with 43 additions and 165 deletions
+3 -3
View File
@@ -778,7 +778,7 @@ func (c *Composer) entry(bucket, key string) (v any, has, known bool) {
defer c.mu.Unlock()
switch bucket {
case buckets.Wants:
// A want is composed by its fingerprint, version and keeping node (design 47 G §525); its words, rule and newest
// A want is composed by its fingerprint and version (design 47 G §525); its words, rule and newest
// change nothing composed. Judged by its fingerprint alone, a want that gained its version at the same fingerprint asked no
// pass, and the agent waited for a composition never made (lead-47 2026-11-16, the indexer on novox).
module := agent.NodeModule
@@ -791,8 +791,8 @@ func (c *Composer) entry(bucket, key string) (v any, has, known bool) {
}
w, ok := c.wants[module]
return struct {
Fp, Version, KeptOn string
}{w.Fp, w.Version, w.KeptOn}, ok, true
Fp, Version string
}{w.Fp, w.Version}, ok, true
case buckets.Assignments:
// Any key of a node, its node key, a module key or its legacy key, stands for the node's whole assignment: a
// module key written before its node key names it changes nothing composed.