UDP transport: implement buffers, socket tasks, throttles, ACKs, and reliability #52
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Implement native Tokio UDP transport from packet buffers through reliable send/receive behavior.
Deliverables
Validation
Prerequisite
Wire codegen and the foundational implementation milestones are complete; the fixed API/test gates remain authoritative.
Project constraints
Implemented and pushed in
c7777d4. Added a native Tokio UDP transport with runtime-neutral construction, bounded receive/command/write queues, a single socket writer, per-peer full-width sequence/reliable state, appended and standalone ACK handling, retries, duplicate/out-of-order tracking, zerocoding/MTU enforcement, C#-compatible packet buffers and AgentThrottle encoding, token-bucket throttles, redacted statistics, cancellation, async task joining, and final-drop cleanup. Added docs and regenerated the native API shim/coverage evidence.Verification: 12/12 isolated UDP loopback tests pass; 2/2 UDP fake-time/unit tests pass; packet-wire 6/6; core runtime compatibility 2/2; API compile fixture, API mapping/coverage, deterministic codegen gate, Clippy, and serial workspace no-run compile all pass. The repository-wide parity checker still independently reports its pre-existing stale PacketTests.ToBytesMultiple metadata hash; this change does not touch that catalog or test body.