The assigner's add-node test writes no lease: since the removal group the assigner reads none and its bed has no lease bucket

The enrolment's issue waits for the lease write itself (ADR 0587 §4); the assigner takes an add-node on its warrant at any time (ADR 0567 §8). (issue 774)

Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
2026-11-02 01:48:53 +01:00
parent 795724f5ca
commit bde60130a8
@@ -1134,9 +1134,9 @@ func TestAProposalIsAnsweredApprovedAndWritten(t *testing.T) {
t.Errorf("the silent node's verdict = %+v", failed.Verdict)
}
// 774/S59 (ADR 0587 §7): once the lease is handed away, a joining node is written on the enrolment's warrant with no node to
// answer and no ask raised, and placement-changed carries that warrant.
b.putJSON(t, buscompose.LeaseBucket, buscompose.ControllerLeaseKey, []byte(`{"handed-to":"mesh-grants","handed-by":"operator"}`))
// 774/S59 (ADR 0587 §7): a joining node is written on the enrolment's warrant with no node to answer and no ask raised,
// and placement-changed carries that warrant. The assigner reads no lease (ADR 0567 §8): the enrolment's own issue waits
// for the lease write (ADR 0587 §4).
for len(heard) > 0 {
<-heard
}