mesh-grants: say what each pass did with the grants #222

Merged
mesh-tools merged 1 commits from fix/grants-pass-says-its-grants into main 2026-11-16 16:26:08 +00:00
@@ -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