From b3552eafd6f0e29dccd3195cf821073b1ee46b12 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 4 Nov 2026 13:07:35 +0100 Subject: [PATCH] DLV-C3: tag-wanted is the mesh-delivery-checker definition's holder event, branch included Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig --- modules/mesh-delivery-checker/go.mod | 1 + .../internal/check/tagwanted.go | 18 +++++------------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/modules/mesh-delivery-checker/go.mod b/modules/mesh-delivery-checker/go.mod index 3158ab69..929f8473 100644 --- a/modules/mesh-delivery-checker/go.mod +++ b/modules/mesh-delivery-checker/go.mod @@ -12,6 +12,7 @@ require git.novox.be/novox/mesh-catalog/modules/mesh-build-go/buildstep v0.0.0-2 require ( git.novox.be/novox/mesh-contracts/go/seats/gopackageregistry v0.0.0-00010101000000-000000000000 + git.novox.be/novox/mesh-contracts/go/seats/meshdeliverychecker v0.0.0-00010101000000-000000000000 git.novox.be/novox/mesh-contracts/go/seats/npmpackageregistry v0.0.0-00010101000000-000000000000 git.novox.be/novox/mesh-delivery/modules/mesh-delivery-builder/buildrun v0.0.0-00010101000000-000000000000 github.com/antithesishq/antithesis-sdk-go v0.7.0-default-no-op // indirect diff --git a/modules/mesh-delivery-checker/internal/check/tagwanted.go b/modules/mesh-delivery-checker/internal/check/tagwanted.go index 40f76a6d..e2ca1b35 100644 --- a/modules/mesh-delivery-checker/internal/check/tagwanted.go +++ b/modules/mesh-delivery-checker/internal/check/tagwanted.go @@ -8,6 +8,7 @@ import ( "sync" "time" + "git.novox.be/novox/mesh-contracts/go/seats/meshdeliverychecker" "git.novox.be/novox/mesh-sdk/go/catalogue" "git.novox.be/novox/mesh-sdk/go/delivery" ) @@ -15,7 +16,7 @@ import ( // EventTagWanted is the checker's event that asks the builder for a group member's tagged versions (design 51 *Tagged // versions*, ADR 0610 ยง1), on the checker's own family asks (its stream asks, kept seven days), apart from the stream // checks, so a waiter on a verdict does not wake on it. -const EventTagWanted = "tag-wanted" +const EventTagWanted = meshdeliverychecker.HolderEventTagWanted // AsksStream is the checker's stream that carries tag-wanted and verdict, in its old streams section (ADR 0619): the // bus names it ASKS. @@ -25,18 +26,9 @@ const AsksStream = "asks" // fails naming the package (design 51 *Tagged versions*: the publish's bound, 10 minutes). const DefaultPublishBound = 10 * time.Minute -// TagWanted is the body of tag-wanted: the seat definition of mesh-delivery-checker, its holder event tag-wanted, with -// the branch the builder keeps the ask under (the lead's ruling of 2026-11-04 12:5x). The tag is left to the builder, -// which makes it from the branch, so one part alone names a branch's tag. -type TagWanted struct { - Repository string `json:"repository"` - Branch string `json:"branch"` - Head string `json:"head"` - Tag string `json:"tag,omitempty"` - Module string `json:"module"` - Package string `json:"package"` - Pull int64 `json:"pull,omitempty"` -} +// TagWanted is the body of tag-wanted, as the seat definition of mesh-delivery-checker says it. The tag is left to the +// builder, which makes it from the branch, so one part alone names a branch's tag. +type TagWanted = meshdeliverychecker.TagWantedHolderEvent // PackageSeats are the registry seats a package of each language is published through (design 51 *The seats*). var PackageSeats = map[string]string{"go": "go-package-registry", "typescript": "npm-package-registry"}