The boss chat merges the worker chats' branches, keeps java-bridge green, plans the next tasks
and talks with the user. Read this, then java-bridge.md and
java-bridge-tasks.md. Update this file when something here changes.
- The user: iaxivers. Owns the fork
iaxivers/horizon-java-bridge. Fedora, RX 9070 XT, Ryzen 9600X, 32 GB DDR5, Europe/Oslo. Often on mobile: short replies, plain words, casual is fine. Has Claude Max; mind usage but don't be stingy when it matters. Wants honest answers ("is this a tragedy?" gets a straight yes/no and why). Tests on his PC in the evenings. - Ludovic (ludovic111): owns upstream
horizon-rust/horizon. Decides what goes upstream and all releases (agents never addrelease-now). Upstream's docs say Fabric/NeoForge jars don't run; upstream is building its own "native mods" (Rust patches the launcher compiles). The bridge needs his buy-in before any upstream PR. Not contacted yet (2026-11-01). - ChinoCappuchino (NeuHorizon fork, PR #5053): NeoForge 1.21.1 mods compiled to native code with Cranelift. As of 2026-10-31 his own docs say mod behaviour code doesn't run and mixins don't apply; his claims of "deep mixin support" weren't true then. Friendly; worth sharing a hook-table format and the Prism launch idea (we built a Fabric version: horizon-play). Don't merge his code into ours.
Six workers, one area each (files in java-bridge-tasks.md): entities, worldgen, pack, client, mixins, gpu. Plus, when needed, one-off chats (the upstream sync). Workers report by the user pasting their final message here; patches come as attachments.
- The client chat often can't push (403): its work comes as
git ampatches. Apply withgit am -3. If its patch series includes a commit you already merged (it builds on its own older branch), cherry-pick only the new commit. - Workers often branch from their own previous, not yet merged branch. That's fine: merged commits are ancestors; only new work conflicts.
git checkout java-bridge && git pull --ff-only, thengit checkout -B merge-batchN.- Merge each pushed branch (
git merge --no-edit origin/bridge-…), apply patches. Stop at each conflict and resolve it before the next merge. - Conflicts seen so far, and how they were settled:
docs/java-bridge.md,regress.py: keep both sides. In regress.py the joineddict(blocks need a),between them; checkpython3 -m py_compileand--list. Watch for two chats using the same MODS key or case name for different mods.- Two chats adding the same method (
players(),origin(),tickCount/currentTick): keep one if they're the same, both if the names differ; fix callers' types (Rustworldgen_originreturns a struct; callers take.x,.z). - Model loading (
HorizonClient.models) was rewritten by four chats. Settled design: pack3's async reload (prepared on background workers, applied on the client thread viatasks(),finishModels()each tick, given up after 2 minutes), plus client2'sClientBootstrap.bootstrap(), gpu2's colour-map listeners andfonts(atlases, skins). - Client join (
joined): gpu's per-player version (joined(ServerPlayer), own connection, login + spawn packets) plus client3's Fabric INIT/JOIN events at its end and thedev.horizonlab.platform.prefix filter. HorizonChunks: entities' revision cache (kept) for server views + gpu's held client chunks (held);Copyhas bothmadeandserver.- Batch 4 (on top of the upstream sync): upstream's design wins where both built the
same thing: loot loading (shared tables, pack overlays,
native_loot_table_load; pack-5's lazy loot was dropped and requeued), the parallel table loading inload_resources(pack-5's memory marks kept),player_fall_damage(mixins' routed falls go inside it). Branches made before the sync that touchedserver_mods.rsmerge intojava_server.rsby git's rename detection; check where a hunk landed when HEAD's side of a conflict is empty (it can split a doc comment from its item).mem_loglives in horizon-client-render. - Merge messages: write them with
git commit -F, notgit merge -m … --no-editafter a conflict (that leaves the# Conflictslines). Neverfilter-branchthis branch: it re-hashes upstream's signed commits.
- Build Java (
java.sh), then the game;cargo fmt; clippy (-A clippy::manual_range_contains: pre-existing in horizon-world). regress.py. Don't editscreen_test.shwhile a run is going (bash reads it as it runs). A failure right after a merge is often the test scene, not the code (the pot scene once failed because the player picked up seeds first: it now clears the inventory).- Update README's status table if something big changed;
check_public_tree.py; commit as iaxivers; fast-forwardjava-bridge; push. - Give the user one short message per chat (or "continue with your queue"), and update java-bridge-tasks.md's queue.
Now one command: tools/java_bridge/setup_cloud.sh [modrinth-slug ...] (JDK, Mojang files,
prepare, the build in the background, jars into ~/jars). Workers use it too.
- JDK 25 from Adoptium into
~/jdk25(JAVA_HOME,HORIZON_JAVA_HOME);libasound2-dev libudev-dev,mesa-vulkan-drivers xvfbfor headless runs. - Fabric's libraries: the build's own download fails on the proxy's certificate: fetch the
fabric-libs.tsv/fabric-api.tsvfiles with curl into.local/bridge/lib(andHORIZON_BRIDGE_LIBS). - Vanilla: a launcher-style folder from Mojang's servers (version JSON pinned in
research-lock.json, client and server jars, libraries, assets), thenhorizon-prepare --prepare --minecraft-dir <it> --server-jar <it>/server-26.3.jar(~1 min). Never commit it. - Test jars from Modrinth's API (
/v2/project/<slug>/version?game_versions=["26.3"]&loaders= ["fabric"]). Slugs that differ from the names: theoneblock, gwg (Grid World), buildcraftrefabricated, trinkets-updated, voxelmap-updated, diorama-map.
Always in a merge round's run: the server case (dedicated server) and the LAN cases
(maps-lan, rei-lan, lan_e2e.py --java-mods … --check javamount). Batch 4 broke dedicated
servers and the headless set didn't see it.
Not in the repo. regress.py --jars <folder> picks jars by name (MODS in regress.py). A boss
chat's container starts empty: download the Modrinth jars the cases need (list in
java-bridge.md), or run only the fixture cases (keys, entity, attack, ride, slot, mixins2).
Some sandboxes refuse to run downloaded mod code: then say so; the user can run them.
Synced with upstream main 41d5649ed (2026-11-05, bridge-upstream-sync-6: 1539 commits;
conflicts in 25 files (11 of them launcher lang files), traps in java-bridge.md "Found in
upstream sync 6"). Before that 73d3ee3d2 (sync 5, 2452 commits). Before that
97937bcf8 (sync 4), when upstream removed WebAssembly code mods (our server_mods.rs is game/java_server.rs now) and
moved rendering into crates/horizon-client-render. Sync every day or two (a one-off chat, or
the boss when it's small); keep hooks in shared Horizon files to one-line calls into our files.
Round 5 merged. New since batch 4: runs from a normal install (fetches Java 25 itself),
dedicated servers work again (batch 4 had broken them: always run the server case),
REI and JourneyMap settings per player, XaeroPlus and MiniHUD, riders seen sitting, horse-style
jumps, mod mobs hunting Horizon's mobs, mod mob drawing 42% cheaper, three hooks on upstream's
hook points, beacons/conduits/Warden/mace falls asking the mods, lazy loot again, the full
pack's world at 3.76 GB (was 5.2), Java's classes kept between runs.
Not yet: the user's PC run of the full pack; release builds and the launcher page; Windows; Horizon's mobs reacting to mod mobs; far terrain with Tectonic.
- A new chat for every round, boss and workers alike. A long chat re-reads everything at each step, which is where most of the usage goes. Each new chat starts from the docs: the boss from this file, a worker from java-bridge-tasks.md (its area's queue and the Reports).
- The user is on Claude Max; at 67% of the week on 2026-11-02 the plan was 3 chats (sync, pack, client) and the others paused until the week resets. Ask the user before starting more.
- Waiting on builds and runs: one long command that waits (a foreground
timeout, or a background run checked rarely), not a check every 5 minutes. - Workers run only their cases; the full regress runs at merge time (the boss).
- The user's own PC runs cost no usage: prefer them for the big pack.
java-bridge= batch 6: upstream sync 3, Windows 2, round 6 of entities, pack, mixins, gpu, client. Worldgen's round 6 was still running (merge it alone when it reports).- Conflicts this batch:
mounts.rs(the Java mount's hearts inside upstream'sdraw_mount_hud), deaths (java_player_diedonly inguest_die: the window'sdeath_messageis gone upstream),control.rs(title text first, then a Java screen), twomaps-servercases (gpu-8's kept; client-9's isvoxelmap-server). - Checked in the boss sandbox: clippy only (no Mojang data, 2 cores). The full regress goes to the user's PC; workers had run their own cases.
- Round 7 queue written; one new chat per area.
java-bridge= batch 7: upstream sync 4, round 7 of entities (-9), mixins (-7-1), gpu (-9), client (-10); pack's round 7 task 1 (bridge-pack-8) was already in. Worldgen's round 6 is still running: merge it alone when it reports.- Found branches without pasted reports:
git branch -r --no-merged origin/java-bridge, sorted by date; each branch's report is its diff todocs/java-bridge-tasks.md. - Conflicts: only the docs (keep both) and
HorizonLoop.java(gpu'scarried()and client'sINBOX/pump(): both kept, a}between them). - This boss container (2 cores, 7 GB) ran the full setup: JDK 25 from apt
(
openjdk-25-jdk-headless), Mojang's files fetched by a script (version manifest → client, server, libraries, assets: ~5k files),horizon-prepare(73 s), Fabric's libraries fetched by the build itself (no proxy trouble this time), Modrinth jars by slug. First game build 19 min. Regress of 30 cases (round 7's, server, LAN, fixtures) took ~1 h 40 here. - Results: see the batch 7 entry in the Reports. New bug queued (client 1): Java's log4j and
Horizon both write a dedicated server's
logs/latest.log.
After batch 7 and worldgen 6, the boss chat debugged the user's run of the 81-jar test pack
(tools/java_bridge/get_test_pack.py) with him, straight on java-bridge: worldgen workers
racing on the structure ring positions, a Horizon-made chunk panicking beside Java ones, the
window's in-memory connection dropping a 2.3 MB packet, a pause during "Loading terrain". The
pack then played, also from the launcher (Java mods tab), at about Horizon's own speed. What's
broken is listed in java-bridge-tasks.md ("The user's PC run"). README's status rewritten.
Lessons: the game folder is the working directory (mods-java is read there, not from
HORIZON_HOME); ctl.log in the run's scratch has the game's stderr; a thread dump (jcmd,
gdb -p $(pgrep -x horizon-client)) settles a hang in one round. The user's runs are free and
fast: prefer them to cloud runs for big packs.
- Daily upstream syncs.
- The user's PC results → fix what's really slow or broken.
- Beta readiness: run from a normal install (bridge jars and a Java runtime shipped/fetched), Windows, clear in-game mod error messages, a known-working pack list. Then a closed beta (10–20 testers) — only after asking Ludovic.
- Draft the message to Ludovic (what the bridge does, how it could fit: opt-in feature, separate crate, or on top of native mods).
- NeoForge/Forge for 26.3 (same mirror; a different loader and events).
Research done (2026-11-04,
bridge-neoforge-research): FML starts in the bridge's JVM and loads mods (server half); the plan and first steps are in java-bridge-neoforge.md. Next: split the platform (step 1 there). - 1.12 (SkyFactory 4 and its packs): a committed goal, not a maybe (the user, 2026-11-03:
"it has to happen"; mods called too hard on day one run now). After NeoForge. The likely
shape: Forge 1.12.2 mods on Cleanroom (a maintained 1.12.2 Forge on modern Java) in the
bridge's JVM, against a 1.12 mirror of Horizon's 26.3 world: blocks and items translated
both ways (pre-flattening ids and metadata ↔ 26.3 states), entities and NBT likewise, the
1.12 client's GL rendering captured as today's GPU path does for 26.3. Start with a research
round: what SkyFactory 4's mods touch (worldgen, tile entities, capabilities, GUIs), and
a first 1.12 mod's block placed in Horizon. Research done (2026-11-04):
java-bridge-112.md has the measured needs and eight phases; phase 1
is
boot112. Old-mod translation in general (remapping renames, a shim library, local only: many mods are all rights reserved) is the other route for 1.20–1.21 mods.
java-bridge= batch 8:bridge-gpu-10(placed mod blocks no longer turn to air;research-lock.jsonaccepts Mojang's republished 26.3 JSON80608ff…) andbridge-mixins-8(Horizon's hoppers into/out of Java mods' blocks via FabricItemStorage). Conflict: only java-bridge-tasks.md (kept both reports).- Checked here (2 cores, 7 GB):
placed hoppers pot server rei-lanpass. Setup: JDK 25 from apt, Mojang files by a manifest script into a launcher folder,lab.py prepare(accepted the new JSON thanks to gpu-10),horizon-prepare44 s, game build 18 min, jars from Modrinth by slug (farmers-delight-refabricated, jade, appleskin, xaeros-minimap, rei, architectury-api, cloth-config, fabric-api). Five cases ~25 min.
java-bridge= batch 9: martipops'windows/java-bridge(an outside contributor's Windows work, run on Windows by him; reviewed before merging:horizon-playreplacesprism.sh, downloads only Mojang files checked againstresearch-lock.json; the game now exits with 78 when the Java mods can't start,HORIZON_JAVA_OPTIONAL=1for the old way),bridge-gpu-11,bridge-worldgen-7(mods' structure templates),bridge-client-11(JEI). Conflicts: docs only.- Checked here:
prism jei jei-lan templates placed hoppers pot server rei-lanpass. The user says invisible blocks are fixed on his PC. - Traps:
prismneedshorizon-prepare --checkto pass (prepare with--complete, else the sounds are missing).templatestimed out on 2 cores (1147 blocks away): its waits are longer now.
Round 10 running (six chats: upstream sync 5, mixins-9, client-12, gpu-12, pack-9, worldgen-8; their tasks are in java-bridge-tasks.md). When they report: one new boss chat merges them all (merge-batch10). After that, nothing until Saturday: the user plays the pack on his PC and collects testers' bugs. Saturday: a boss chat queues those bugs, then the upstream prep chat (launcher switch, then the shared-file hooks), and the reply plan for Ludovic.
java-bridge= batch 10: upstream sync 5 (upstream main 73d3ee3d2), upstream-prep (the launcher's "Fabric 26.3 mods (beta)" switch: off by default,--java-mods/HORIZON_JAVA_MODS=1opt in), pack-9, mixins-9, client-12, worldgen-8, gpu-12 (Create draws and turns, mods' fluids, 3D Skin Layers).- Conflicts: launcher strings and fields (both kept);
java_mods.rs(the opt-in gate over client-12'srun_jars);start.rs(both methods); gpu-12's OBJ loader dropped for upstream's (RootAssetsreads the files);HorizonClientcontextual bars (client-12's); two chats added regress casescreateandfluids: the second ones arecreate-clientandfluids-flow. Upstream's new glass home view needed the Java mods tab. - Checked here: 23 cases pass (the round's 16 new ones, pot, placed, hoppers, jei, templates,
server, rei-lan). Launcher
cargo checkclean. - Ludovic's agent (2026-11-04): Horizon links to the bridge as an unofficial community project
once (1) no offline play / no downloads before a Microsoft sign-in and (2) no code tied to other
mods' internals. The user: launcher only, Prism and
horizon-playgo. Both queued first in java-bridge-tasks.md.
java-bridge= batch 11: Ludovic's two conditions done (launcher-only; generic-maps, -ui, -entities), plus survey-1, gpu-13, neoforge-research, 112-research, client-13, replay-1, mixins-10, voice-1, entities-10, trello-1, crash-1. Report and conflicts in java-bridge-tasks.md ("Merge batch 11").regress.pyrunsnomodcodefirst on every run (no mod's package in the bridge's code;--code-checkalone, no game). A worker who needs a mod's class fails it: do it the vanilla way instead. Mod Menu's API is allowed (ALLOWED_APIS): ask Ludovic.- Traps:
setup_cloud.shfrom an older checkout buildshorizon-play, which is gone: merge first, then build. Two "keep both" merges that each emptied a list leave a danglingMap.of(: compile Java (java.sh) before the long build. A leftover headless game after a killed run eats 2.6 GB: the next build's rustc gets OOM-killed (pgrep -x horizon-client). Neverpkill -fa pattern that is in your own command line.
java-bridge= batch 12: upstream sync 6 (upstream main 41d5649ed), upstream-prep-2 (bridge code out of Horizon's files: hooks listed in java-bridge-upstream.md), release-1 (the fork's signedjava-modsrelease workflow; nothing published yet: the signing key secret isn't set), perf-1, generic-2, worldgen-9 (mods' dimensions), client-14, mixins-11, gpu-14, trello-2, 112-boot, entities-10's TACZ follow-up. Report: java-bridge-tasks.md "Merge batch 12".- After upstream-prep-2, bridge code lives in
<file>/java.rschild modules andjava_mods/{bridge,off}.rs. A worker branch made before it that edits the old place conflicts: re-apply its hunks where prep moved the code (patch -F0per hunk; fuzz misplaces them), and keep the plain build compiling (clippy withoutjava-modstoo). Game fields moved intoJavaGame(self.java.binds,self.java.overlay...). - Two chats built the same thing twice this round (client-14 with mixins-11, and with gpu-14): one owner per mechanism (click halves, mods' packets, client block entities) in the queue.
- Tests here are load-sensitive:
bettercombat,tacz,dimensionsfailed in the 24-case run on timing; run a failure alone (or on the PC) before blaming a merge. Java-only bisect: put a commit'scrates/horizon-jvm/javain place (remove the folder first: later files linger),java.sh,regress.py --java-only. - Checked: game build, launcher build, clippy (both builds), 24 cases + voice.