From 6a91fa15f6e3b3b298679a17201c9f33b75f4eb7 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 14 Nov 2026 12:17:27 +0100 Subject: [PATCH] Indexer seed: the module directory goes with named paths only (ADR 0499 clause 4) Live on novox the Go and Node build seats refused every seed steps call with 'the request names a module directory and no path': the trunk entries name no paths, and the seed sent the directory alone. Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h --- modules/mesh-delivery-indexer/internal/index/seed_steps.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/mesh-delivery-indexer/internal/index/seed_steps.go b/modules/mesh-delivery-indexer/internal/index/seed_steps.go index 8b9d97b4..4fece72d 100644 --- a/modules/mesh-delivery-indexer/internal/index/seed_steps.go +++ b/modules/mesh-delivery-indexer/internal/index/seed_steps.go @@ -112,7 +112,12 @@ func (ix *Indexer) SeedModulesFrom(ctx context.Context, defs map[string]seatdef. seat := seatOf[a.Ref] sa := SeedArtifact{Name: name, Seat: seat} in := nodebuildgo.StepsInput{Module: e.Module, Artifact: nodebuildgo.DetectedStepsByModuleArtifactKey(e.Module, name), Fingerprint: e.Fp, - Fetch: &nodebuildgo.Fetch{Repository: e.Repository, Commit: e.Commit, Dir: e.Path, Paths: namedPaths(e, name), Packages: maps.Clone(e.Packages)}} + Fetch: &nodebuildgo.Fetch{Repository: e.Repository, Commit: e.Commit, Packages: maps.Clone(e.Packages)}} + // The module's directory and its named paths go together, only when the entry names its paths (ADR 0499 clause + // 4); a request without them builds from the module's directory (sdk/buildstep FetchRequest). + if paths := namedPaths(e, name); len(paths) > 0 { + in.Fetch.Dir, in.Fetch.Paths = e.Path, paths + } if _, gone := unanswered[seat]; gone { // the seat did not answer earlier in this seed: its later artifacts are not asked again (A-392) m.Artifacts = append(m.Artifacts, sa)