From d1f734466203946f216e596f438b1e560624dae5 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 12 Nov 2026 15:31:18 +0100 Subject: [PATCH] A-285: the SDK's lib artifact names its paths, so a change to them is a changed package The indexer holds an artifact's named paths, and the checker packs the SDK for a group only when its merge changes one of them. Builds: design 47 G A-285 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h --- go/catalogue/own_manifest_test.go | 5 +++-- module.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go/catalogue/own_manifest_test.go b/go/catalogue/own_manifest_test.go index 5d52469c..21205ceb 100644 --- a/go/catalogue/own_manifest_test.go +++ b/go/catalogue/own_manifest_test.go @@ -35,8 +35,9 @@ func TestOwnManifestUsesNoWordTheRunningControllerRefuses(t *testing.T) { if g := packages["go"]; g.Name != "go" || !slices.Equal(g.Paths, []string{"go"}) { t.Errorf("mesh-sdk's Go package is %+v, want go built from go", g) } - if l := packages["typescript"]; l.Name != "lib" || l.Paths != nil { - t.Errorf("mesh-sdk's TypeScript package is %+v", l) + // Its named paths, so the indexer holds them and a change to them is a changed package (design 47 G A-285). + if l := packages["typescript"]; l.Name != "lib" || !slices.Equal(l.Paths, []string{"package.json", "package-lock.json", "tsconfig.json", "src"}) { + t.Errorf("mesh-sdk's TypeScript package is %+v, want lib built from package.json, package-lock.json, tsconfig.json and src", l) } // What a reader reads (novox/hq ADR 0614 ยง4): the baseline is the contract of mesh-sdk f02f142, which every running diff --git a/module.json b/module.json index 3aa807ff..9e8144b0 100644 --- a/module.json +++ b/module.json @@ -4,7 +4,7 @@ "slug": "sdk", "build": { "artifacts": [ - { "name": "lib", "kind": "package", "language": "typescript", "calls": ["finding-calls"] }, + { "name": "lib", "kind": "package", "language": "typescript", "paths": ["package.json", "package-lock.json", "tsconfig.json", "src"], "calls": ["finding-calls"] }, { "name": "go", "kind": "package", "language": "go", "paths": ["go"], "calls": ["finding-calls", "ledger-upkeep-calls", "put-sessions", "sent-objects-calls"] } ] },