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.
This commit is contained in:
2026-11-16 17:25:49 +01:00
parent bf2962dc29
commit 298f4de168
@@ -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