Skip to content

feat(diagnostics): complete client UDP terminal evidence - #169

Merged
itlezy merged 6 commits into
mainfrom
feat/diagnostic-client-udp-outcomes
Oct 24, 2026
Merged

itlezy merged 6 commits into
mainfrom
feat/diagnostic-client-udp-outcomes

Conversation

@itlezy

@itlezy itlezy commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve structured client-UDP parse and routing rejection reasons
  • emit terminal receive outcomes for filtered, banned, malformed, unknown, unregistered, unsolicited, disabled, and accepted paths
  • centralize all client-UDP socket writes and record correlated attempted/send_succeeded/send_failed/send_cancelled diagnostics
  • classify reask, buddy relay, direct callback, and port-test states/phases accurately

Diagnostics contract

  • exact outbound bytes appear once on the packet event with outcome: attempted
  • lightweight send_outcome events correlate through sendAttemptId without repeating payload bytes
  • cancelled in-flight writes report deliveryKnown: false
  • exact inbound raw bytes remain present even when the packet cannot be decoded

Validation

  • cargo test -p emulebb-ed2k --features packet-diagnostics (1186 passed)
  • cargo test -p emulebb-core --features packet-diagnostics (433 unit tests plus all integration suites passed)
  • strict cargo clippy -p emulebb-ed2k --all-targets --features packet-diagnostics
  • strict cargo clippy -p emulebb-ed2k --all-targets
  • cargo fmt --check

@itlezy
itlezy merged commit 50fc327 into main Oct 24, 2026
15 checks passed
@itlezy
itlezy deleted the feat/diagnostic-client-udp-outcomes branch October 24, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant