[PR #1696] [CLOSED] Client: report unsupported server packets and entities #3695

Closed
opened 2026-11-03 04:11:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1696
Author: @RVZO6
Created: 10/25/2026
Status: ❌ Closed

Base: main ← Head: fix/client-protocol-diagnostics


📝 Commits (2)

  • 20c9b76 Report unsupported server features instead of silently ignoring them
  • 029afee Document the client parity contribution and wider follow-up audit

📊 Changes

8 files changed (+606 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+72 -6)
📝 crates/horizon-client/src/lib.rs (+1 -0)
📝 crates/horizon-client/src/net.rs (+65 -5)
➕ crates/horizon-client/src/net_gaps.rs (+157 -0)
➕ crates/horizon-protocol/examples/client_packet_audit.rs (+41 -0)
📝 crates/horizon-protocol/src/packets/mod.rs (+40 -0)
➕ docs/client-parity-handoff.md (+172 -0)
➕ docs/client-protocol-coverage.md (+58 -0)

📄 Description

🤖 Opened by RVZO6's AI agent (OpenAI Codex, gpt-6.1-sol), not by RVZO6.

What and why

A real-server join reported zero decode errors while boss events were ignored and text-display entities were tracked without being drawn. Zero decode errors was not a useful completeness check.

  • Add bounded, per-connection omission counters to horizon-ctl status (server.protocol_gaps). Warn once per category/id; retain no packet bodies, player names, chat or profile properties in this report.
  • Report unknown login/configuration/play packets, decode failures, decoded-but-unhandled packets, and unsupported entity spawns. Exclude intentionally invisible interaction/marker entities and optional plugin channels.
  • Make login/configuration/play dispatch exhaustive: newly typed packets require explicit handling or an omission arm, rather than disappearing into a wildcard.
  • Add a generated decoder inventory (cargo run -p horizon-protocol --example client_packet_audit) and document the audit boundaries and follow-up areas. This is not a claim of full client parity.

Reference and scope

The pinned ids.rs tables and typed packet enums supply the packet inventory. No vanilla behaviour is changed; this exposes missing client behaviour. Existing raw command-suggestion handling stays intact. Metadata-field coverage, skin failures, and partially interpreted item components remain outside the counters.

Verification

  • cargo fmt --all -- --check: passed.
  • Protocol unit tests: 85 passed.
  • Client network/diagnostic tests: 15 selected tests passed, including unknown configuration/play packets followed by valid traffic, deduplication, bounded growth, phase separation, and identifier lookup.
  • cargo check -p horizon-client --lib --bins: passed.
  • pr_ready.py --quick --base origin/main: 1,289 Rust tests passed and doc tests passed on the initial patch. Stock Clippy failed on the existing clippy::boxed_local warning in untouched streaming.rs:640.
  • Targeted Clippy for client/protocol lib, bins, tests and examples passed with only that existing lint allowed (-D warnings -A clippy::boxed_local).
  • Vanilla harnesses were not run for these diagnostics. An isolated, offline-mode vanilla 26.3 Java server delivered a modified sword, a boss bar, three display entity types, a pig, and intentionally invisible entities to a real Rust client. The combined test build (including existing upstream inventory/skin/boss-bar fixes) received the sword with zero decode errors and displayed the boss bar. The report identified all three display types plus recipe/feature/tag/post-effect/non-player-attribute gaps; intentionally invisible entities were not flagged. The test did not access real player data. A subsequent authenticated public-server check also reported server links, stop-sound, recipes, feature flags, tags, simulation-distance, and unsupported text-display spawns while decode_errors remained zero. This confirms that the report catches omissions the old counter missed. No packet bodies or private session reports are included here.

Maintainer handoff and further audits

Client parity contribution and follow-up plan indexes the six contributions, records verification limits and dependencies, and gives concrete next steps for recipes, tags/features and server links. It also specifies a wider packet/entity-metadata/item-component audit and Java-server-to-Rust-client acceptance process, so follow-up work is not limited to the examples found here.

This is a partial contribution, not a full-parity claim. Current-base CI/review and assembled-candidate validation remain necessary; the handoff distinguishes completed, partial and unfinished work.

🤖 Generated with OpenAI Codex.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1696 **Author:** [@RVZO6](https://github.com/RVZO6) **Created:** 10/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/client-protocol-diagnostics` --- ### 📝 Commits (2) - [`20c9b76`](https://github.com/horizon-rust/horizon/commit/20c9b766f6a269d64b48a411a9b14b71e4a038d4) Report unsupported server features instead of silently ignoring them - [`029afee`](https://github.com/horizon-rust/horizon/commit/029afee41b96a930ba202648b32f30420f95811e) Document the client parity contribution and wider follow-up audit ### 📊 Changes **8 files changed** (+606 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+72 -6) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) 📝 `crates/horizon-client/src/net.rs` (+65 -5) ➕ `crates/horizon-client/src/net_gaps.rs` (+157 -0) ➕ `crates/horizon-protocol/examples/client_packet_audit.rs` (+41 -0) 📝 `crates/horizon-protocol/src/packets/mod.rs` (+40 -0) ➕ `docs/client-parity-handoff.md` (+172 -0) ➕ `docs/client-protocol-coverage.md` (+58 -0) </details> ### 📄 Description > 🤖 Opened by RVZO6's AI agent (OpenAI Codex, gpt-6.1-sol), not by RVZO6. ## What and why A real-server join reported zero decode errors while boss events were ignored and text-display entities were tracked without being drawn. Zero decode errors was not a useful completeness check. - Add bounded, per-connection omission counters to `horizon-ctl status` (`server.protocol_gaps`). Warn once per category/id; retain no packet bodies, player names, chat or profile properties in this report. - Report unknown login/configuration/play packets, decode failures, decoded-but-unhandled packets, and unsupported entity spawns. Exclude intentionally invisible interaction/marker entities and optional plugin channels. - Make login/configuration/play dispatch exhaustive: newly typed packets require explicit handling or an omission arm, rather than disappearing into a wildcard. - Add a generated decoder inventory (`cargo run -p horizon-protocol --example client_packet_audit`) and document the audit boundaries and follow-up areas. This is not a claim of full client parity. ## Reference and scope The pinned `ids.rs` tables and typed packet enums supply the packet inventory. No vanilla behaviour is changed; this exposes missing client behaviour. Existing raw command-suggestion handling stays intact. Metadata-field coverage, skin failures, and partially interpreted item components remain outside the counters. ## Verification - `cargo fmt --all -- --check`: passed. - Protocol unit tests: 85 passed. - Client network/diagnostic tests: 15 selected tests passed, including unknown configuration/play packets followed by valid traffic, deduplication, bounded growth, phase separation, and identifier lookup. - `cargo check -p horizon-client --lib --bins`: passed. - `pr_ready.py --quick --base origin/main`: 1,289 Rust tests passed and doc tests passed on the initial patch. Stock Clippy failed on the existing `clippy::boxed_local` warning in untouched `streaming.rs:640`. - Targeted Clippy for client/protocol lib, bins, tests and examples passed with only that existing lint allowed (`-D warnings -A clippy::boxed_local`). - Vanilla harnesses were not run for these diagnostics. An isolated, offline-mode vanilla 26.3 Java server delivered a modified sword, a boss bar, three display entity types, a pig, and intentionally invisible entities to a real Rust client. The combined test build (including existing upstream inventory/skin/boss-bar fixes) received the sword with zero decode errors and displayed the boss bar. The report identified all three display types plus recipe/feature/tag/post-effect/non-player-attribute gaps; intentionally invisible entities were not flagged. The test did not access real player data. A subsequent authenticated public-server check also reported server links, stop-sound, recipes, feature flags, tags, simulation-distance, and unsupported text-display spawns while `decode_errors` remained zero. This confirms that the report catches omissions the old counter missed. No packet bodies or private session reports are included here. ## Maintainer handoff and further audits [Client parity contribution and follow-up plan](https://github.com/RVZO6/horizon/blob/fix/client-protocol-diagnostics/docs/client-parity-handoff.md) indexes the six contributions, records verification limits and dependencies, and gives concrete next steps for recipes, tags/features and server links. It also specifies a wider packet/entity-metadata/item-component audit and Java-server-to-Rust-client acceptance process, so follow-up work is not limited to the examples found here. This is a partial contribution, not a full-parity claim. Current-base CI/review and assembled-candidate validation remain necessary; the handoff distinguishes completed, partial and unfinished work. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:11:30 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3695
No description provided.