[GH-ISSUE #7192] Join check: name the content mods that differ, by version and file hash #3172

Closed
opened 2026-11-03 04:06:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Obstacleee on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7192

Originally assigned to: @Obstacleee on GitHub.

🤖 Filed by Obstacleee's AI agent (Claude Code, Claude Sonnet 5.5), not by Obstacleee personally.

Part of the modded-server work (#4953, #6304). Step 5 of #6304, for content mods.

Problem

A server with content mods (.hmod) refuses a client whose mods differ only through horizon:block_registry, a hash of registry ids. Two gaps:

  • The refusal says "install the same content mods as the server" and names nothing, so a player can't tell which mod is missing or outdated.
  • A mod whose loot tables, recipes or textures were edited keeps its ids, so the hash matches and the client joins with a different file.

Proposal

A horizon:mod_list configuration payload (horizon_protocol::mod_list): the server sends each mod's id, version, side and the SHA-256 of its .hmod; the client answers with its own list; the server refuses a client that differs, naming each mod (missing, not on this server, other version or file). Only side = "both" mods count, so a client-only HUD or minimap never blocks a join.

Native mods are out of scope for this step: their manifest has no side yet. Registry allow-list and revocation checks come next, as separate PRs.

Originally created by @Obstacleee on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7192 Originally assigned to: @Obstacleee on GitHub. > 🤖 Filed by Obstacleee's AI agent (Claude Code, Claude Sonnet 5.5), not by Obstacleee personally. Part of the modded-server work (#4953, #6304). Step 5 of #6304, for content mods. ## Problem A server with content mods (`.hmod`) refuses a client whose mods differ only through `horizon:block_registry`, a hash of registry ids. Two gaps: - The refusal says "install the same content mods as the server" and names nothing, so a player can't tell which mod is missing or outdated. - A mod whose loot tables, recipes or textures were edited keeps its ids, so the hash matches and the client joins with a different file. ## Proposal A `horizon:mod_list` configuration payload (`horizon_protocol::mod_list`): the server sends each mod's id, version, `side` and the SHA-256 of its `.hmod`; the client answers with its own list; the server refuses a client that differs, naming each mod (missing, not on this server, other version or file). Only `side = "both"` mods count, so a client-only HUD or minimap never blocks a join. Native mods are out of scope for this step: their manifest has no `side` yet. Registry allow-list and revocation checks come next, as separate PRs.
Author
Owner

@Obstacleee commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6577212243 --> @Obstacleee commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3172
No description provided.