From 6f14eeb32e6c5f40d184c3972a562decf31b696e Mon Sep 17 00:00:00 2001 From: Efremenko Arhip Date: Mon, 27 Jul 2026 11:05:36 +0300 Subject: [PATCH] fix(coordinator): silence nilerr on unresolvable-worker trust fallback --- coordinator/internal/usecase/task.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coordinator/internal/usecase/task.go b/coordinator/internal/usecase/task.go index 0fec738..ca4ca4b 100644 --- a/coordinator/internal/usecase/task.go +++ b/coordinator/internal/usecase/task.go @@ -278,7 +278,9 @@ func (uc *CompleteTask) workerTrust(ctx context.Context, workerID string) (trust // is therefore known; only an untrusted worker ever takes the quorum path. id, err := uuid.Parse(workerID) if err != nil { - return true, uuid.Nil, nil + // An unparseable worker id means the worker can't be resolved; fall back + // to the trusted default rather than surfacing the parse error. + return true, uuid.Nil, nil //nolint:nilerr // unresolvable worker → trusted (pre-quorum default) } w, err := uc.workers.Get(ctx, id) if err != nil {