agent: the parts check counts the templates archives a composition was rendered from as fetched (A-481, A-481a)

compose fills Composed.Templates from the resolved manifest's TemplatesDigest; partsDifference adds them to the digests fetched.

Builds: design 47 G A-481, A-481a
This commit is contained in:
2026-11-17 23:44:15 +01:00
parent 179a4a6402
commit 87cfae48b2
7 changed files with 45 additions and 11 deletions
+4
View File
@@ -297,6 +297,10 @@ func compositions(in Input, node string, fps map[string]string, mode Mode, appli
}
if m, ok := in.Catalogue[c.Module]; ok && c.Module != "" {
c.Data = len(m.DataItems()) > 0
// The archive its files were rendered from, which the parts check counts as fetched (design 47 G A-481a).
if m.TemplatesDigest != "" {
c.Templates = []string{m.TemplatesDigest}
}
out[key] = c
}
}