From 298f4de168b506016130a03b509e68932ac95e3c Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 16 Nov 2026 17:25:49 +0100 Subject: [PATCH] mesh-grants: say what each pass did with the grants A grant held (kept or waiting) or left out was read only from the pass object, which no tool opens, and the assigner's sixth rule waited on it in silence: no grant for any module was written after 15:43 on 2026-11-16 and nothing said why. Each pass now says its grants: wanted, written, deleted, and every kept, waiting and missing one with its reason. --- modules/mesh-grants/internal/grants/tools.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/mesh-grants/internal/grants/tools.go b/modules/mesh-grants/internal/grants/tools.go index 77681b63..fcbfa019 100644 --- a/modules/mesh-grants/internal/grants/tools.go +++ b/modules/mesh-grants/internal/grants/tools.go @@ -240,6 +240,22 @@ func (p *Part) Pass() Result { for _, e := range res.Errors { p.Logf("the pass: %s", e) } + // What the grants step did, said too: a grant held (kept, waits) or left out is otherwise read only from the object + // the tools cannot open, and the assigner's sixth rule waits on it in silence (2026-11-16, mesh-hand-acts 4eb3cf48). + if g := res.Grants; g != nil { + p.Logf("the grants: %d wanted, %d written, %d deleted", g.Wanted, len(g.Written), len(g.Deleted)) + for _, k := range g.Kept { + p.Logf("the grants kept: %s", k) + } + for _, w := range g.Waits { + p.Logf("the grant waits: %s", w) + } + for _, m := range g.Missing { + p.Logf("the grant is missing: %s", m) + } + } else { + p.Logf("the grants: this pass did not reach them") + } p.Logf("the pass ended: %d errors, sealed %+v", len(res.Errors), res.Sealed) } return res