Skip to content

UniNet v0.17.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 05:58
· 29 commits to main since this release

Dispatch registration-collision guard (GEN-001 — no wire/generator change). The dispatch table silently overwrote an existing handler on any re-registration (a lone Debug.WriteLine was the only trace) — a cross-assembly FNV-1a method-ID clash would hijack the dispatch invisibly.

Changed

  • User-range method IDs (>= 64): re-registration is idempotent when the handler is the SAME method (delegate method identity, not instance identity — method-group arguments produce fresh delegates per registration pass); a DIFFERENT handler on a taken ID (cross-assembly clash, which compile-time UNINET007 cannot see) is rejected first-wins and surfaced through LogFault with both method names. Same handler with a different delivery mode is also a conflict (strict).
  • Reserved wire IDs (< 64, wires 13/14) keep the silent overwrite — every assembly registers its own internal handler under the same ID by design ("idempotent across assemblies").
  • Tests: EditMode UniNetDispatchRegistrationTests — idempotent re-registration, cross-handler rejection (first-wins pinned), reserved-range overwrite, delivery-mode mismatch.