A heard entry of the membership carries its consumer's spec (H-A-472, seventh and eighth addenda) #210

Merged
mesh-tools merged 1 commits from fix/heard-issued-spec into main 2026-11-22 19:01:43 +00:00
Member

Design lines: hq design/47-H1-answers-59 at 6b3356ba and b7d01fce (lead answer H-A-472, its seventh and eighth addenda).

Purpose

The tool runner creates its own _tools consumer from the spec a heard entry of the membership carries; the grants part composes none. So a heard entry must carry the consumer's whole spec.

Change

membership.HeardIssued gains Filters, AckWaitSeconds, MaxDeliver, MaxAckPending, DeliverPolicy and HasSpec, all omitempty; entries written before this change still decode (HasSpec false).

Tests

go/membership/membership_test.go: a heard entry with a spec round-trips whole; an old entry without one decodes with HasSpec false.

Reviewed-by: mesh-code-reviewer@shanks at ed9e5bd700
Pushed-by: lead-47@shanks

Design lines: hq `design/47-H1-answers-59` at 6b3356ba and b7d01fce (lead answer H-A-472, its seventh and eighth addenda). ## Purpose The tool runner creates its own `_tools` consumer from the spec a heard entry of the membership carries; the grants part composes none. So a heard entry must carry the consumer's whole spec. ## Change `membership.HeardIssued` gains `Filters`, `AckWaitSeconds`, `MaxDeliver`, `MaxAckPending`, `DeliverPolicy` and `HasSpec`, all `omitempty`; entries written before this change still decode (`HasSpec` false). ## Tests `go/membership/membership_test.go`: a heard entry with a spec round-trips whole; an old entry without one decodes with `HasSpec` false. Reviewed-by: mesh-code-reviewer@shanks at ed9e5bd700bda7869ca6250f5d9d93f8ca57c9f4 Pushed-by: lead-47@shanks
mesh-tools added 1 commit 2026-11-22 19:01:34 +00:00
A part that creates a hearing consumer itself (the tool runner, for a module's
_tools twin) reads the filters, ack wait, max deliver, max ack pending and
deliver policy from the membership instead of computing them, so the grants
part stays the one composer of filters. The fields are omitted when unset: an
older grants part's membership still reads, and an older reader ignores them.
HasSpec says which an entry is, so a reader binds an older entry by name and
creates a newer one from its spec.

Builds: design 47 H2 H-A-472 (seventh addendum, eighth addendum)
mesh-tools merged commit 1fa56e1a0e into main 2026-11-22 19:01:43 +00:00
mesh-tools deleted branch fix/heard-issued-spec 2026-11-22 19:01:44 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-sdk#210