[PR #7086] [MERGED] Classes 10: drifted line refs and a duplicate check the tree has #7322

Closed
opened 2026-11-03 06:37:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7086
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/ledger-classes-10-y


📝 Commits (1)

  • adb8f08 port map: classes-10 line refs that drifted and a duplicate check that exists

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 tools/port_map/classes-10.tsv (+3 -3)

📄 Description

Three rows of tools/port_map/classes-10.tsv were stale. Two carried line references into face.rs that no longer point at the code they describe, and one recorded a missing duplicate check the tree has. No verdict changes, and no other row is touched.

row verdict citation change
SubShape.clampToShape inline (unchanged) crates/horizon-core/src/geometry/shape/face.rs::VoxelShape::calculate_face note: the clamp is at face.rs:61-64, not 43-46
SubShape.isFull inline (unchanged) crates/horizon-core/src/geometry/shape/face.rs::VoxelShape::calculate_face note: the occupancy copy is at face.rs:78-86, not 61-68
LevelChunkTicks.scheduleUnchecked inline (unchanged) crates/horizon-core/src/ticks/mod.rs::ChunkTicks::schedule note rewritten
  • VoxelShape::calculate_face clamps the parent's discrete extrema to the slice at face.rs:61-64 (discrete_min/discrete_max clamped to the slice's start and end, relative to the start), and copies the slice's occupancy from the parent plane at face.rs:78-86 (occupied.push(self.is_full(p[0], p[1], p[2])) in the three nested loops). The old line numbers described where those two statements sat before the function was restructured, not a different behaviour; both rows keep their verdict and their citation.
  • LevelChunkTicks.scheduleUnchecked said ChunkTicks::schedule was "push only, no duplicate check". It is the checking path: ChunkTicks::schedule inserts tick.key() (kind plus position) into positions and returns false for a repeat, so the first schedule wins "irrespective of timing/priority". The unchecked push vanilla does while unpacking is ChunkTicks::unpack, which the note now says; LevelTicks::schedule still carries the onTickAdded deadline update (ticks/mod.rs:407-409) and LevelTicks::unpack_chunk the refresh it mentions.

map-check: 18 rows, no problems.

Proven: git grep -n "clamp(starts\[i\]" -- crates/horizon-core/src/geometry/shape/face.rs gives the two clamp lines at 62 and 64, and git grep -n "occupied.push(self.is_full" gives 84 inside the loop that starts at 78. crates/horizon-core/src/ticks/mod.rs::ChunkTicks::schedule reads if !self.positions.insert(tick.key()) { return false; } before the push, ChunkTicks::unpack pushes saved ticks straight onto the queue with no dedup, and LevelTicks::unpack_chunk puts the deadline after unpack.

Not proven: the vanilla side of these three notes (what SubShape.fill writes, which scheduleUnchecked call sites exist) was read through the ledger's method index and callee lists; this box has no decompiled 26.3 sources. The rest of the file was re-read and left alone: ScoreboardSaveData.setData still has no save-data copy or dirty check, LevelChunkTicks.unpack's deadline refresh is still in LevelTicks::unpack_chunk, AttributeTrack.bakeSampler still builds only the day timeline's tracks, AttributeTrackSampler.applyTimeBased still knows multiply and override but not maximum, and AttributeTrack.validatePeriod still has no counterpart (load_dimension reads period_ticks without checking the keyframes against it).


🔄 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/7086 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/ledger-classes-10-y` --- ### 📝 Commits (1) - [`adb8f08`](https://github.com/horizon-rust/horizon/commit/adb8f080385ffa6ce4a9598d2a7e901b8bbcc94b) port map: classes-10 line refs that drifted and a duplicate check that exists ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-10.tsv` (+3 -3) </details> ### 📄 Description Three rows of `tools/port_map/classes-10.tsv` were stale. Two carried line references into `face.rs` that no longer point at the code they describe, and one recorded a missing duplicate check the tree has. No verdict changes, and no other row is touched. | row | verdict | citation | change | | --- | --- | --- | --- | | `SubShape.clampToShape` | `inline` (unchanged) | `crates/horizon-core/src/geometry/shape/face.rs::VoxelShape::calculate_face` | note: the clamp is at `face.rs:61-64`, not `43-46` | | `SubShape.isFull` | `inline` (unchanged) | `crates/horizon-core/src/geometry/shape/face.rs::VoxelShape::calculate_face` | note: the occupancy copy is at `face.rs:78-86`, not `61-68` | | `LevelChunkTicks.scheduleUnchecked` | `inline` (unchanged) | `crates/horizon-core/src/ticks/mod.rs::ChunkTicks::schedule` | note rewritten | - `VoxelShape::calculate_face` clamps the parent's discrete extrema to the slice at `face.rs:61-64` (`discrete_min`/`discrete_max` clamped to the slice's start and end, relative to the start), and copies the slice's occupancy from the parent plane at `face.rs:78-86` (`occupied.push(self.is_full(p[0], p[1], p[2]))` in the three nested loops). The old line numbers described where those two statements sat before the function was restructured, not a different behaviour; both rows keep their verdict and their citation. - `LevelChunkTicks.scheduleUnchecked` said `ChunkTicks::schedule` was "push only, no duplicate check". It is the checking path: `ChunkTicks::schedule` inserts `tick.key()` (kind plus position) into `positions` and returns `false` for a repeat, so the first schedule wins "irrespective of timing/priority". The unchecked push vanilla does while unpacking is `ChunkTicks::unpack`, which the note now says; `LevelTicks::schedule` still carries the `onTickAdded` deadline update (`ticks/mod.rs:407-409`) and `LevelTicks::unpack_chunk` the refresh it mentions. `map-check`: `18 rows, no problems.` **Proven:** `git grep -n "clamp(starts\[i\]" -- crates/horizon-core/src/geometry/shape/face.rs` gives the two clamp lines at 62 and 64, and `git grep -n "occupied.push(self.is_full"` gives 84 inside the loop that starts at 78. `crates/horizon-core/src/ticks/mod.rs::ChunkTicks::schedule` reads `if !self.positions.insert(tick.key()) { return false; }` before the push, `ChunkTicks::unpack` pushes saved ticks straight onto the queue with no dedup, and `LevelTicks::unpack_chunk` puts the deadline after `unpack`. **Not proven:** the vanilla side of these three notes (what `SubShape.fill` writes, which `scheduleUnchecked` call sites exist) was read through the ledger's method index and callee lists; this box has no decompiled 26.3 sources. The rest of the file was re-read and left alone: `ScoreboardSaveData.setData` still has no save-data copy or dirty check, `LevelChunkTicks.unpack`'s deadline refresh is still in `LevelTicks::unpack_chunk`, `AttributeTrack.bakeSampler` still builds only the day timeline's tracks, `AttributeTrackSampler.applyTimeBased` still knows multiply and override but not `maximum`, and `AttributeTrack.validatePeriod` still has no counterpart (`load_dimension` reads `period_ticks` without checking the keyframes against it). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:37:42 +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#7322
No description provided.