[PR #322] [MERGED] Design: port each new Minecraft release with as little human work as possible #2490

Closed
opened 2026-11-02 15:56:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: docs/version-ports


📝 Commits (1)

  • 720e91f Design the version-port pipeline: detect, prepare, diff, regenerate, report

📊 Changes

2 files changed (+270 additions, -0 deletions)

View changed files

📝 docs/README.md (+1 -0)
➕ docs/version-ports.md (+269 -0)

📄 Description

What

docs/version-ports.md: the design of the pipeline that turns each new Minecraft release into a Horizon port.

  • detect: Mojang's version manifest, daily from a ~/fleet launchd agent on the Mac mini (GitHub Actions kept as the fallback); snapshots optional, diff-only.
  • prepare: download and verify the version JSON and jars into a bounded version store (~/code/horizon-parity/versions/, at most 3 versions, about 150 MB each), unpack the bundler, run vanilla's data generator, and index every class's methods by a normalized bytecode hash (exact, and seconds rather than a 10-minute Vineflower run).
  • diff: facts (protocol/data/pack/Java versions), packets, registries, blocks, item components, commands, data-pack JSON, assets/lang, and classes (method level). Only changed classes get decompiled, and those diffs stay on the Mac mini.
  • vanilla class → Horizon module map, built from the oracles' imports, the harness scripts and the Rust comments that name vanilla classes.
  • regenerate: one generator entry per generated table, plus a version_consts generator after a refactor that removes the duplicated version constants.
  • every harness against the new version in a candidate worktree.
  • port report: ranked, area-sized work items. publish turns each one into a GitHub issue and a Kira card (structured diff only, no decompiled code).
  • switch and release: the candidate branch is the pin-bump PR. It merges when nothing blocking is left, then ships through the normal release flow.
  • what stays manual (new mechanics, oracle API fixes, new harnesses, JDK bumps, the merge decision), and how the pipeline makes it small.

Why

Ludovic's goal: every Minecraft release can be ported automatically through Horizon.

How tested

Docs only. The facts in the "today" section were checked against the tree and the Mac mini's shared-local: research-lock.json, horizon-prepare's data-generator step, tools/ci/vanilla-data.sh, the generators in tools/, every hard-coded 26.3/777/5023, and the client jar's own version.json.

The next PRs implement tools/version_port.py (detect/prepare/diff, class diff + map, port report) and replay 26.2 → 26.3.

Needs Ludovic

Nothing to merge this. Later: approve the ~/fleet launchd agent and the version-port label.

🤖 Generated with Claude Code


🔄 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/322 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `docs/version-ports` --- ### 📝 Commits (1) - [`720e91f`](https://github.com/horizon-rust/horizon/commit/720e91fb8cec9c7af5a530102ecde8baf7d8d748) Design the version-port pipeline: detect, prepare, diff, regenerate, report ### 📊 Changes **2 files changed** (+270 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -0) ➕ `docs/version-ports.md` (+269 -0) </details> ### 📄 Description ## What `docs/version-ports.md`: the design of the pipeline that turns each new Minecraft release into a Horizon port. - **detect**: Mojang's version manifest, daily from a ~/fleet launchd agent on the Mac mini (GitHub Actions kept as the fallback); snapshots optional, diff-only. - **prepare**: download and verify the version JSON and jars into a bounded version store (`~/code/horizon-parity/versions/`, at most 3 versions, about 150 MB each), unpack the bundler, run vanilla's data generator, and index every class's methods by a normalized bytecode hash (exact, and seconds rather than a 10-minute Vineflower run). - **diff**: facts (protocol/data/pack/Java versions), packets, registries, blocks, item components, commands, data-pack JSON, assets/lang, and classes (method level). Only changed classes get decompiled, and those diffs stay on the Mac mini. - **vanilla class → Horizon module map**, built from the oracles' imports, the harness scripts and the Rust comments that name vanilla classes. - **regenerate**: one generator entry per generated table, plus a `version_consts` generator after a refactor that removes the duplicated version constants. - **every harness against the new version** in a candidate worktree. - **port report**: ranked, area-sized work items. `publish` turns each one into a GitHub issue and a Kira card (structured diff only, no decompiled code). - **switch and release**: the candidate branch is the pin-bump PR. It merges when nothing blocking is left, then ships through the normal release flow. - **what stays manual** (new mechanics, oracle API fixes, new harnesses, JDK bumps, the merge decision), and how the pipeline makes it small. ## Why Ludovic's goal: every Minecraft release can be ported automatically through Horizon. ## How tested Docs only. The facts in the "today" section were checked against the tree and the Mac mini's shared-local: `research-lock.json`, `horizon-prepare`'s data-generator step, `tools/ci/vanilla-data.sh`, the generators in `tools/`, every hard-coded `26.3`/`777`/`5023`, and the client jar's own `version.json`. The next PRs implement `tools/version_port.py` (detect/prepare/diff, class diff + map, port report) and replay 26.2 → 26.3. ## Needs Ludovic Nothing to merge this. Later: approve the ~/fleet launchd agent and the `version-port` label. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:56:37 +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#2490
No description provided.