Merge what several subjects contribute into one contribution.
Order is the order given, so a group that lists its members in a stable order
merges to the same bytes every run. Nothing is deduplicated: two subjects
claiming the same id is a defect for the builder's own uniqueness checks to
report, and silently collapsing it here would hide the collision from the
gate that owns it.
Arrays are freshly allocated; their entries retain the input objects by
reference. Absent or empty fields remain absent, including an empty input
list. The caller must validate duplicate identities after this merge.
Merge what several subjects contribute into one contribution.
Order is the order given, so a group that lists its members in a stable order merges to the same bytes every run. Nothing is deduplicated: two subjects claiming the same id is a defect for the builder's own uniqueness checks to report, and silently collapsing it here would hide the collision from the gate that owns it.
Arrays are freshly allocated; their entries retain the input objects by reference. Absent or empty fields remain absent, including an empty input list. The caller must validate duplicate identities after this merge.