From cabd3c0a8d4ee31115e1485776e069b40591ff57 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 5 Nov 2026 17:20:14 +0100 Subject: [PATCH] catalogue: PublishSeats and the npm and go registry seat names go (no user); seat-names shrinks (S-8) Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i --- go/catalogue/artifacts.go | 5 ----- go/catalogue/test_seats_test.go | 4 ++-- go/testdata/seat-names.txt | 2 -- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/go/catalogue/artifacts.go b/go/catalogue/artifacts.go index e1db225..aa5009b 100644 --- a/go/catalogue/artifacts.go +++ b/go/catalogue/artifacts.go @@ -59,8 +59,6 @@ func InArtifactStore(reference string) (path string, kept bool) { // clients' in mesh-delivery-contracts (prepare D-1); until those clients hold it, this package keeps the one copy and // the package-list test names it as the one exception (S-8). const ( - npmPackageRegistrySeat = "npm-package-registry" - goPackageRegistrySeat = "go-package-registry" containerImageRegistrySeat = "container-image-registry" ociArtifactRegistrySeat = "oci-artifact-registry" ) @@ -69,9 +67,6 @@ const ( // (novox/hq ADR 0605 §1, §9). var RegistrySeats = []string{containerImageRegistrySeat, ociArtifactRegistrySeat} -// PublishSeats are the seats an artifact is published through (ADR 0605 §1). -var PublishSeats = []string{npmPackageRegistrySeat, goPackageRegistrySeat, containerImageRegistrySeat, ociArtifactRegistrySeat} - // SeatReference is the reference a build names an image, bundle, archive or upstream copy by once it published it // through a registry seat (novox/hq ADR 0605 §9): `//@sha256:`, as InRegistrySeat reads // it back. The store's address is left out, as in the older form: a reader routes it (Routed). diff --git a/go/catalogue/test_seats_test.go b/go/catalogue/test_seats_test.go index 4d6531e..95a2a46 100644 --- a/go/catalogue/test_seats_test.go +++ b/go/catalogue/test_seats_test.go @@ -31,8 +31,8 @@ const ( ProvisionerSeat = "mesh-provisioner" BrokerSeat = "mesh-broker" EngineSeat = "node-engine" - NpmPackageRegistrySeat = npmPackageRegistrySeat - GoPackageRegistrySeat = goPackageRegistrySeat + NpmPackageRegistrySeat = "npm-package-registry" + GoPackageRegistrySeat = "go-package-registry" ContainerImageRegistrySeat = containerImageRegistrySeat OciArtifactRegistrySeat = ociArtifactRegistrySeat ) diff --git a/go/testdata/seat-names.txt b/go/testdata/seat-names.txt index 1fa53c0..aef59a4 100644 --- a/go/testdata/seat-names.txt +++ b/go/testdata/seat-names.txt @@ -1,7 +1,5 @@ catalogue/artifact_sweep_seat.go: mesh-artifact-sweep catalogue/artifacts.go: container-image-registry -catalogue/artifacts.go: go-package-registry -catalogue/artifacts.go: npm-package-registry catalogue/artifacts.go: oci-artifact-registry catalogue/environment_into.go: node-environment catalogue/environment_into.go: node-login-shell