Read stored manifests leniently and mark the defaults layer (hq ADR 0262 review)

A strict read of the stored catalogue fails every plan and send once a manifest uses a field an older
controller lacks; registration stays strict. A node named default lost its layer to the name check.
Judge the operator's keys by whole words, and scan a default under any key.
This commit is contained in:
jochen
2026-10-08 17:06:01 +02:00
parent 239edbb5bd
commit cc4dd1e9ee
9 changed files with 208 additions and 23 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ func settingValue(layers []Layer, key string) (any, bool) {
func orNoSettings(layers []Layer) string {
var keys []string
for _, l := range layers {
if l.From == DefaultLayer {
if l.Default {
continue
}
for k := range l.Values {