From 5bbde5db409f1c4f6f5e331afc64f7dc0a38a1f8 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 16 Nov 2026 00:28:41 +0100 Subject: [PATCH] =?UTF-8?q?node-engine:=20the=20composer=20judges=20a=20ch?= =?UTF-8?q?anged=20want=20by=20its=20fingerprint,=20version,=20parts=20and?= =?UTF-8?q?=20keeping=20node,=20so=20a=20want=20that=20gains=20its=20parts?= =?UTF-8?q?=20is=20composed=20(design=2047=20G=20=C2=A7525)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/selfcompose/selfcompose.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/internal/selfcompose/selfcompose.go b/internal/selfcompose/selfcompose.go index 8d9a29c7..7a12747d 100644 --- a/internal/selfcompose/selfcompose.go +++ b/internal/selfcompose/selfcompose.go @@ -723,7 +723,9 @@ 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 alone (fingerprints); its words, rule and newest change nothing composed. + // A want is composed by its fingerprint, version, parts and keeping node (design 47 G ยง525); its words, rule and newest + // change nothing composed. Judged by its fingerprint alone, a want that gained its parts 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 if _, ok := meshwants.ParseWantsByWantNodeNodeKey(key); !ok { node, m, ok := meshwants.ParseWantsByWantNodeModuleKey(key) @@ -733,7 +735,10 @@ func (c *Composer) entry(bucket, key string) (v any, has, known bool) { module = m } w, ok := c.wants[module] - return w.Fp, ok, true + return struct { + Fp, Version, KeptOn string + Parts map[string]string + }{w.Fp, w.Version, w.KeptOn, w.Parts}, 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.