[PR #3526] [MERGED] Port ledger: link parity harnesses to the methods they cover; list untested ports #5036

Closed
opened 2026-11-03 05:09:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3526
Author: @kacpherek
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: tools/port-ledger-harness


📝 Commits (10+)

  • e36fd24 Add the port ledger: vanilla methods next to the Rust functions that port them
  • ef304f3 Document the port ledger
  • cd42938 Port ledger: bytecode calls, wider matching, drift, issue and check
  • 2dd963a Document the port ledger's new matching, gaps and commands
  • 12c503e Port ledger: class homes, structural matches and the verdict map
  • 0f7036f Map the first three batches: animals, inventory screens, world generation
  • 5a8b968 Document class homes, structural matches and the verdict map
  • 969749d Map 13 game-logic batches and add map-check
  • 91358d8 Map the rest of the game logic: classes with no Rust trace, then method batches
  • c045245 Map client packet handling, entity renderers and models, block renderers

📊 Changes

72 files changed (+1376 additions, -1276 deletions)

View changed files

📝 docs/port-ledger.md (+10 -0)
📝 tools/port_ledger.py (+92 -2)
📝 tools/port_map/animal-1.tsv (+3 -3)
📝 tools/port_map/classes-02.tsv (+1 -1)
📝 tools/port_map/classes-03.tsv (+3 -3)
📝 tools/port_map/classes-04.tsv (+10 -10)
📝 tools/port_map/classes-05.tsv (+3 -3)
📝 tools/port_map/classes-07.tsv (+18 -18)
📝 tools/port_map/classes-09.tsv (+3 -3)
📝 tools/port_map/classes-10.tsv (+2 -2)
📝 tools/port_map/client-001.tsv (+7 -7)
📝 tools/port_map/client-002.tsv (+2 -2)
📝 tools/port_map/client-003.tsv (+4 -4)
📝 tools/port_map/client-004.tsv (+1 -1)
📝 tools/port_map/client-005.tsv (+1 -1)
📝 tools/port_map/client-006.tsv (+1 -1)
📝 tools/port_map/client-007.tsv (+43 -43)
📝 tools/port_map/client-008.tsv (+46 -46)
📝 tools/port_map/client2-001.tsv (+46 -46)
📝 tools/port_map/client2-002.tsv (+70 -70)

...and 52 more files

📄 Description

Follow-up to #3139 (merged).

What and why

  • The port ledger says where vanilla's methods live in Horizon, not that they behave like vanilla. The parity harnesses check that, but nothing linked the two. Now build records which harness covers each ported method: a tools/test_*_parity.py covers a method when its Rust fixture or probe (crates/*/examples/) reaches the port and the vanilla side is in reach (its oracle in mods/horizon/src/test/java/dev/horizonlab/parity/ calls into the method, or the harness or oracle names its class; oracles often reach vanilla through an interface, which a call graph can't follow).
  • where Class.method lists the method's harnesses.
  • gaps --kind untested [--package world/entity] lists the sure pairs (cited, or answered in the verdict map) with behaviour of their own that no harness covers, most-called first: where a new harness would catch the most drift (PathNavigation.moveTo, createPath, EntityDimensions.scale, Entity.startRiding...).
  • On current main: 264 harnesses cover 2,294 ported methods.
  • The crate split on main moved files out of horizon-client (horizon-client-render and others), so 1,272 verdict-map rows pointed at old paths; they now point at the files' new crates, and map-check passes on all 14,666 rows again.
  • docs/port-ledger.md has a short section on it.

Self-check

python -m unittest discover -s tests and tools/check_public_tree.py pass. No game code changes; not run in game.


🔄 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/3526 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `tools/port-ledger-harness` --- ### 📝 Commits (10+) - [`e36fd24`](https://github.com/horizon-rust/horizon/commit/e36fd240089ceafb93e6f355372b1229a680c0d1) Add the port ledger: vanilla methods next to the Rust functions that port them - [`ef304f3`](https://github.com/horizon-rust/horizon/commit/ef304f30c93653ce1f7a2d4362c801bf22473c78) Document the port ledger - [`cd42938`](https://github.com/horizon-rust/horizon/commit/cd42938b884a1682ed4ce52ba67ae42a4222b650) Port ledger: bytecode calls, wider matching, drift, issue and check - [`2dd963a`](https://github.com/horizon-rust/horizon/commit/2dd963a5390ce9af4a12f3ededfef936f67fe9a8) Document the port ledger's new matching, gaps and commands - [`12c503e`](https://github.com/horizon-rust/horizon/commit/12c503e154b6426ac0fbb8046f0fd02410d1a0c8) Port ledger: class homes, structural matches and the verdict map - [`0f7036f`](https://github.com/horizon-rust/horizon/commit/0f7036f9b161763387d3202b9309de1c804eff60) Map the first three batches: animals, inventory screens, world generation - [`5a8b968`](https://github.com/horizon-rust/horizon/commit/5a8b9687e5c5ac9cbc8299e67a3f049ea4151121) Document class homes, structural matches and the verdict map - [`969749d`](https://github.com/horizon-rust/horizon/commit/969749da3dc698dfe3db94abf4abb0c6bdbab591) Map 13 game-logic batches and add map-check - [`91358d8`](https://github.com/horizon-rust/horizon/commit/91358d8088135871e70053934fa10c9e3681d33d) Map the rest of the game logic: classes with no Rust trace, then method batches - [`c045245`](https://github.com/horizon-rust/horizon/commit/c045245e8ed11298a5b668804f4a4f7421100b1a) Map client packet handling, entity renderers and models, block renderers ### 📊 Changes **72 files changed** (+1376 additions, -1276 deletions) <details> <summary>View changed files</summary> 📝 `docs/port-ledger.md` (+10 -0) 📝 `tools/port_ledger.py` (+92 -2) 📝 `tools/port_map/animal-1.tsv` (+3 -3) 📝 `tools/port_map/classes-02.tsv` (+1 -1) 📝 `tools/port_map/classes-03.tsv` (+3 -3) 📝 `tools/port_map/classes-04.tsv` (+10 -10) 📝 `tools/port_map/classes-05.tsv` (+3 -3) 📝 `tools/port_map/classes-07.tsv` (+18 -18) 📝 `tools/port_map/classes-09.tsv` (+3 -3) 📝 `tools/port_map/classes-10.tsv` (+2 -2) 📝 `tools/port_map/client-001.tsv` (+7 -7) 📝 `tools/port_map/client-002.tsv` (+2 -2) 📝 `tools/port_map/client-003.tsv` (+4 -4) 📝 `tools/port_map/client-004.tsv` (+1 -1) 📝 `tools/port_map/client-005.tsv` (+1 -1) 📝 `tools/port_map/client-006.tsv` (+1 -1) 📝 `tools/port_map/client-007.tsv` (+43 -43) 📝 `tools/port_map/client-008.tsv` (+46 -46) 📝 `tools/port_map/client2-001.tsv` (+46 -46) 📝 `tools/port_map/client2-002.tsv` (+70 -70) _...and 52 more files_ </details> ### 📄 Description Follow-up to #3139 (merged). ## What and why - The port ledger says where vanilla's methods live in Horizon, not that they behave like vanilla. The parity harnesses check that, but nothing linked the two. Now `build` records which harness covers each ported method: a `tools/test_*_parity.py` covers a method when its Rust fixture or probe (`crates/*/examples/`) reaches the port and the vanilla side is in reach (its oracle in `mods/horizon/src/test/java/dev/horizonlab/parity/` calls into the method, or the harness or oracle names its class; oracles often reach vanilla through an interface, which a call graph can't follow). - `where Class.method` lists the method's harnesses. - `gaps --kind untested [--package world/entity]` lists the sure pairs (cited, or answered in the verdict map) with behaviour of their own that no harness covers, most-called first: where a new harness would catch the most drift (`PathNavigation.moveTo`, `createPath`, `EntityDimensions.scale`, `Entity.startRiding`...). - On current main: 264 harnesses cover 2,294 ported methods. - The crate split on main moved files out of `horizon-client` (`horizon-client-render` and others), so 1,272 verdict-map rows pointed at old paths; they now point at the files' new crates, and `map-check` passes on all 14,666 rows again. - docs/port-ledger.md has a short section on it. ## Self-check `python -m unittest discover -s tests` and `tools/check_public_tree.py` pass. No game code changes; not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:09:46 +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#5036
No description provided.