From 0bc03bba35460a0736584b3756fac376d281d9d7 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 21 Nov 2026 23:20:11 +0100 Subject: [PATCH] =?UTF-8?q?=C2=A7780=20readers:=20take=20the=20form=20the?= =?UTF-8?q?=20tolerant=20seat=20decoders=20answer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mesh-contracts' K1 regenerated every seat package to answer (value, form, error); the catalog's four callers take the form. Builds: design 47 H2 §780; H-A-350 DMC-4 --- modules/mesh-build-go/cmd/mesh-build-go/steps.go | 2 +- modules/mesh-build-node/cmd/mesh-build-node/steps.go | 2 +- modules/mesh-conditions/cmd/mesh-conditions/keeper_test.go | 2 +- modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/mesh-build-go/cmd/mesh-build-go/steps.go b/modules/mesh-build-go/cmd/mesh-build-go/steps.go index c1aac6760..7f97be58d 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/steps.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/steps.go @@ -172,7 +172,7 @@ func (m *Module) steps(ctx context.Context, args map[string]any) (any, error) { // and by again (§326). if again, _ := args["again"].(bool); !again && fp != "" && m.ReadDetected != nil { if raw, err := m.ReadDetected(key); err == nil && len(raw) > 0 { - if kept, err := seat.DecodeDetectedStepsByModuleArtifactValue(raw); err == nil && kept.Fingerprint == fp { + if kept, _, err := seat.DecodeDetectedStepsByModuleArtifactValue(raw); err == nil && kept.Fingerprint == fp { return StepsAnswer{Artifact: artifact, Fingerprint: fp, Steps: kept.Steps, Kept: true}, nil } } diff --git a/modules/mesh-build-node/cmd/mesh-build-node/steps.go b/modules/mesh-build-node/cmd/mesh-build-node/steps.go index 43fd63c83..0e0d236cb 100644 --- a/modules/mesh-build-node/cmd/mesh-build-node/steps.go +++ b/modules/mesh-build-node/cmd/mesh-build-node/steps.go @@ -114,7 +114,7 @@ func (m *Module) steps(ctx context.Context, args map[string]any) (any, error) { key := seat.DetectedStepsByModuleArtifactKey(str("module"), name) if again, _ := args["again"].(bool); !again && fp != "" && m.ReadDetected != nil { if raw, err := m.ReadDetected(key); err == nil && len(raw) > 0 { - if kept, err := seat.DecodeDetectedStepsByModuleArtifactValue(raw); err == nil && kept.Fingerprint == fp { + if kept, _, err := seat.DecodeDetectedStepsByModuleArtifactValue(raw); err == nil && kept.Fingerprint == fp { return StepsAnswer{Artifact: artifact, Fingerprint: fp, Steps: kept.Steps, Kept: true}, nil } } diff --git a/modules/mesh-conditions/cmd/mesh-conditions/keeper_test.go b/modules/mesh-conditions/cmd/mesh-conditions/keeper_test.go index d6331c34e..9e872fdff 100644 --- a/modules/mesh-conditions/cmd/mesh-conditions/keeper_test.go +++ b/modules/mesh-conditions/cmd/mesh-conditions/keeper_test.go @@ -156,7 +156,7 @@ func (r *rig) open(key string) (Condition, bool) { var c Condition if ok { // The seat's layout, read strictly: a field the seat does not name is a fault of the keeper's write. - v, err := seat.DecodeConditionsByKeyValue(raw) + v, _, err := seat.DecodeConditionsByKeyValue(raw) if err != nil { panic(fmt.Sprintf("the condition %s is not the seat's layout: %v: %s", key, err, raw)) } diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go index 7e400fd1d..ea4d1d7bd 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go @@ -53,7 +53,7 @@ func (kvHeads) Get(key string) (*HeldHead, error) { if err != nil || e == nil { return nil, err } - v, err := seat.DecodeHeadsByRepositoryBranchValue(e.Value) + v, _, err := seat.DecodeHeadsByRepositoryBranchValue(e.Value) if err != nil { return nil, fmt.Errorf("heads %s is not readable: %w", key, err) }