[PR #4546] [MERGED] Retarget ledger rows that are already ported #5688

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4546
Author: @MSedgeMC
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: chore/ledger-stale-rows


📝 Commits (1)

  • 0d31254 Retarget ledger rows that are already ported

📊 Changes

3 files changed (+13 additions, -13 deletions)

View changed files

📝 tools/port_map/animal-1.tsv (+4 -4)
📝 tools/port_map/classes-01.tsv (+8 -8)
📝 tools/port_map/rest-007.tsv (+1 -1)

📄 Description

Documentation only: tools/port_map/ verdicts, no Rust.

AGENTS.md sends every contributor to the ledger before parity work, and rows in it say missing for behaviour already on main. Each of the thirteen rows below was checked against the 26.3 jar and against the tree, and now names the function that ports it:

row was now points at
SpectralArrow.doPostHurtEffects missing game/potions.rs::Game::arrow_post_hurt_effects, called for every landed arrow hit (creatures.rs:3589)
SpectralArrow.tick missing game/remote_projectiles.rs::Game::arrow_effect_particles
Axolotl.usePlayerItem missing game/creatures.rs::Game::interact_mob (water bucket hand-back, 4fcaff993)
Axolotl.rehydrate missing game/splash_water.rs::Game::affect_entities_around
AllayAi.hearNoteblock missing mobs/allay.rs::hear_noteblock (PR #3946)
Allay.VibrationUser.canReceiveVibration, GlobalPos.isCloseEnough missing mobs/allay.rs (same PR)
Pillager.pickUpItem missing game/raids.rs::Game::sync_raiders
Pillager.wantsItem, Pillager.getSlot missing dead code / no numeric entity slots in Horizon
AbstractThrownPotion.onHitBlock / douseFire / affectEntitiesAround missing game/splash_water.rs

The three Pillager rows are the interesting ones: Pillager.pickUpItem dispatches every BannerItem to Raider.pickUpItem before wantsItem is consulted, so the wantsItem→inventory arm is unreachable in 26.3, and the live path — the ominous banner becoming the head slot and the raid leader — is already ported. Rows like that cost a contributor an afternoon; three of the thirteen were exactly that for me.

Sibling methods were flipped with their cluster rather than alone (the allay memory trio, the splash-potion pair), because leaving one stale row beside a fixed one is worse than leaving both.

Seven more verified-stale rows were deliberately left for their own passes and are named in the commit message area below rather than half-fixed: a three-row SignBlockEntity cluster, ClientPacketListener.handleChunksBiomes, EntitySelectorParser.createRotationPredicate, LightningBolt.shouldRenderAtSqrDistance, and Allay.updateDynamicGameEventListener's note (which PR #3946 also made false).

What is proven: every changed row was checked against the class's bytecode with javap and against the cited file:line; all 14,660 rows of the TSVs still parse into 3–4 tab fields with a verdict from the file's allowed set, and for the three changed files every port/inline row's cited file exists and contains the cited fn. Two pre-existing map errors were found and left untouched (rest-019 and rest-022 cite functions that do not exist).

What is not proven: port_ledger.py map-check needs .local/port-ledger/ledger.json, which a fork checkout cannot build (build --jar stops on a decompiled-source lookup), so the mechanical check could not run — the checks above were done by hand and by script over the TSVs. And this is a sample: of 1,645 missing rows, a single-pass scan found 278 that cite their vanilla method in Rust, which is a strong signal they are ported. I verified thirteen of those; the rest want their own pass rather than a bulk flip.


🔄 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/4546 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `chore/ledger-stale-rows` --- ### 📝 Commits (1) - [`0d31254`](https://github.com/horizon-rust/horizon/commit/0d31254815373d78b4791e8ec444c39547660aaf) Retarget ledger rows that are already ported ### 📊 Changes **3 files changed** (+13 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/animal-1.tsv` (+4 -4) 📝 `tools/port_map/classes-01.tsv` (+8 -8) 📝 `tools/port_map/rest-007.tsv` (+1 -1) </details> ### 📄 Description Documentation only: `tools/port_map/` verdicts, no Rust. `AGENTS.md` sends every contributor to the ledger before parity work, and rows in it say `missing` for behaviour already on `main`. Each of the thirteen rows below was checked against the 26.3 jar and against the tree, and now names the function that ports it: | row | was | now points at | |---|---|---| | `SpectralArrow.doPostHurtEffects` | missing | `game/potions.rs::Game::arrow_post_hurt_effects`, called for every landed arrow hit (`creatures.rs:3589`) | | `SpectralArrow.tick` | missing | `game/remote_projectiles.rs::Game::arrow_effect_particles` | | `Axolotl.usePlayerItem` | missing | `game/creatures.rs::Game::interact_mob` (water bucket hand-back, `4fcaff993`) | | `Axolotl.rehydrate` | missing | `game/splash_water.rs::Game::affect_entities_around` | | `AllayAi.hearNoteblock` | missing | `mobs/allay.rs::hear_noteblock` (PR #3946) | | `Allay.VibrationUser.canReceiveVibration`, `GlobalPos.isCloseEnough` | missing | `mobs/allay.rs` (same PR) | | `Pillager.pickUpItem` | missing | `game/raids.rs::Game::sync_raiders` | | `Pillager.wantsItem`, `Pillager.getSlot` | missing | dead code / no numeric entity slots in Horizon | | `AbstractThrownPotion.onHitBlock` / `douseFire` / `affectEntitiesAround` | missing | `game/splash_water.rs` | The three Pillager rows are the interesting ones: `Pillager.pickUpItem` dispatches every `BannerItem` to `Raider.pickUpItem` **before** `wantsItem` is consulted, so the `wantsItem`→inventory arm is unreachable in 26.3, and the live path — the ominous banner becoming the head slot and the raid leader — is already ported. Rows like that cost a contributor an afternoon; three of the thirteen were exactly that for me. Sibling methods were flipped with their cluster rather than alone (the allay memory trio, the splash-potion pair), because leaving one stale row beside a fixed one is worse than leaving both. Seven more verified-stale rows were deliberately left for their own passes and are named in the commit message area below rather than half-fixed: a three-row `SignBlockEntity` cluster, `ClientPacketListener.handleChunksBiomes`, `EntitySelectorParser.createRotationPredicate`, `LightningBolt.shouldRenderAtSqrDistance`, and `Allay.updateDynamicGameEventListener`'s note (which PR #3946 also made false). **What is proven:** every changed row was checked against the class's bytecode with `javap` and against the cited file:line; all 14,660 rows of the TSVs still parse into 3–4 tab fields with a verdict from the file's allowed set, and for the three changed files every `port`/`inline` row's cited file exists and contains the cited `fn`. Two pre-existing map errors were found and left untouched (`rest-019` and `rest-022` cite functions that do not exist). **What is not proven:** `port_ledger.py map-check` needs `.local/port-ledger/ledger.json`, which a fork checkout cannot build (`build --jar` stops on a decompiled-source lookup), so the mechanical check could not run — the checks above were done by hand and by script over the TSVs. And this is a sample: of 1,645 `missing` rows, a single-pass scan found 278 that cite their vanilla method in Rust, which is a strong signal they are ported. I verified thirteen of those; the rest want their own pass rather than a bulk flip. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:20 +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#5688
No description provided.