How parity is tested
"Parity" means: the game behaves the same as on the official Vanilla server. That is the goal of Soulshale, and these tests are how we work towards it and measure how far we are. Parity applies to everything you see in game: redstone timing, mob behaviour, item physics, world generation. Where we know it is not reached yet, it is listed under Known limits.
It does not apply to the inside of the server. File formats, threads and memory layout are chosen for speed. A player cannot see the difference.
Two kinds of exactness we aim for:
- World generation should be bit-exact. The same seed should give the same world, block for block (see World generation). It does in nearly all tested areas; in rare cases a few blocks differ, because Java's sine and cosine cannot be matched bit for bit under Soulshale's licence (Known limits).
- Randomness during play follows the same rules. On a running server, Vanilla draws random numbers from the system, so no server can repeat them. Soulshale uses the same probabilities and draws its random numbers in the same order. Players, mobs and the rest of the level draw from one shared stream, like in Vanilla. In the tests, Vanilla's randomness is made repeatable, so mobs can be compared tick by tick, random numbers included.
Goldens
Most tests compare with goldens: reference values recorded from the real Vanilla server. A small Java program runs Vanilla's own code and writes down its results; Soulshale's tests must produce exactly the same values. Each golden is tied to the exact Minecraft version it was recorded on. A missing or outdated golden makes the test fail; it is never skipped.
Scenarios
A scenario is a small, scripted situation, for example "place these blocks, then wait 20 ticks". It runs on Vanilla and in Soulshale. After every tick both sides write down the blocks in the area, the scheduled block and fluid updates, and the entities; light scenarios also write down the sky and block light as the player sees it, and mob scenarios each mob's rotation, health, target, current goals, path and random number state. A scenario can also run commands, use an item on a block or an entity, throw potions, strike lightning, let the day pass or restart the server in the middle, and it can switch on an experimental feature of the world. The two records must match exactly. Each scenario also runs once on one thread and once in parallel, to catch differences caused by multithreading.
Scenarios that cross dimensions (a portal, /tp to another dimension) run on the real server with its three worlds ticked one after another, the order of the vanilla profile. Both sides follow each entity across worlds. Scenarios about advancements and statistics record which criteria and statistics the players have completed.
Client view. Some scenarios also compare what each player's client receives. Vanilla's server records the packets it sends, Soulshale records its own, and both are turned into the same list of events per tick: entities that appear and disappear, boss bars, joining and respawning, block changes, game events, abilities, inventory slots, scoreboard, team and map updates, and, where a scenario asks for it, the player's own attribute values, the sounds it hears and the swings of its hand. Entity numbers and the order of packets inside a tick are ignored. This covers the End with its dragon, portals, teleports, death and respawn, and fights between players (the victim's motion, the hurt animation, damage events).
Command feedback. Some scenarios keep the messages that commands send back, and whether they succeeded or failed. Vanilla's text and Soulshale's text must match, including error messages and their hover and click parts. This covers /tick, data pack commands, advancements, /data, /loot, /compute with all number providers of Minecraft 26.3, selectors and wrong input. Wrong input includes broken item and entity data: a syntax error in SNBT (the text in braces) has Vanilla's wording and cursor position, and an item with a bad component value fails while the command is read.
Where a scenario still differs from Vanilla, the first differing tick and the reason are written in a list of known differences (one small file per scenario). The test fails if that tick moves, so every fix and every new difference is noticed.
Quick tier. cargo xtask parity quick runs the fast scenarios on all cores in about a minute. The slowest ones are listed in a skip file and left out there. The test program uses the same memory allocator as the release builds and stays at about 870 MiB of RAM.
Same packets with many threads
Soulshale can share the work of one tick between several threads (see Threads and ticks). A test checks that this changes nothing a player can see. A scripted crowd walks over pressure plates, tripwires, berry bushes, fire and walls, a piston switches back and forth, and one player places stone into the cell another player enters in the same tick. The crowd runs twice: once with one thread, once with the tick phases on helper threads. Every connection's packets must be byte for byte equal, tick by tick. A third run lets the server work with stale blocks on purpose, and its packets must differ: that proves the test can see such an error. It runs with 16 and with 64 players.
Random scenarios
Hand-written scenarios only find what someone thought of. So a generator makes scenarios from random seeds: towers, pools, loose blocks, mobs, and a test player that sends the same packets as a real client. That player walks, sprints, sneaks, jumps, falls, swims, mines, builds, uses items, fights, clicks its inventory and rides. Each scenario is recorded on Vanilla and compared tick by tick. A difference is shrunk to the smallest scenario that still shows it. Every difference found becomes a fixed scenario with its entry in the list of known differences, until it is fixed and the entry is removed.
Fluid fuzzer. Water and lava are among the hardest things to match, because a flood touches thousands of blocks. A second generator (cargo xtask parity fluids) floods real and made-up terrain at random: Vanilla itself generates a village, a beach, windswept hills, a river and caves, and the fuzzer turns random air into water and lava (sources and flowing levels) and random blocks into waterlogged ones. Every region crosses a chunk border, and some scenarios unload the chunks on one side during the run and load them again later. Each scenario is compared tick by tick with Vanilla in the vanilla, paper and performance profiles. Some terrain that is generated during a run comes out differently from run to run in Vanilla itself. So the fuzzer records such a scenario several times, and it passes when Soulshale equals one of the recordings exactly.
Coverage of Vanilla's code
How do we know what the scenarios do not test? A coverage map answers that. The Vanilla server runs every scenario with a coverage tool attached (JaCoCo, a standard Java tool), and the result shows which parts of Vanilla's own code ran. Reports go by system (mobs, blocks, items, fluids, and so on) and list the biggest parts that no scenario touches yet. cargo xtask parity coverage makes it.
First map (2026-11-27): the scenarios ran 56.3 % of the instructions of Vanilla 26.3's gameplay code (37.4 % of its branches, 56.5 % of its methods). Over all of Minecraft's code, including the parts a server barely uses, it was 42.6 %. Scenarios for the weakest areas have been added since (for example scoreboard and teams, loot, trading, maps, structure blocks, workstation menus, several animals, trial spawners and brushing); they are not in a published number yet. The map leaves out code a release server never runs, such as the data generator and the client half of the vault.
The map also steers the random scenarios above: the generator picks the behaviours, mobs, items and blocks whose Vanilla code is least covered more often. The map is a tool, not a result: the code that runs is not the same as the code that is checked.
Long runs (soak)
Some things only show after hours of play: crops, mob spawning, the day cycle, weather, chunks that load and unload. Five soak scenarios (a farm, a village, a redstone build, weather with the day cycle, chunk borders) run for whole game days, tens of thousands of ticks, with the game rules of a real server on. Vanilla is recorded once and only a short checksum per tick is kept. Soulshale runs the same scenario and compares the checksum of every tick. At the first tick that differs, the run stops, Vanilla is run again up to that tick, and the two states of that tick are compared in full into a report.
For this to work, the Vanilla recording itself must be repeatable: two recordings of the same scenario must give the same checksums. The recording tool fixes everything that made Vanilla's recordings change from run to run: loading speed, the order of dimensions, the order of villagers' beds and job sites, the weather timers. A recording is stored under the scenario and a hash of the recorder's sources, so it is made again whenever the recorder changes.
Results: the farm matches Vanilla for all 48,000 ticks, the redstone build for the whole day of 24,000 ticks, the weather run for all seven days, and the village for all 48,000 ticks.
Worlds and machines built by people
Small scenarios miss what players really build. So there is also a corpus of real worlds and schematics: 77 of them, from big redstone computers, piston doors and farms to TNT cannons, hopper chains, villager halls, mob farms and lag machines, and command block maps and data pack minigames. Each one is listed with where it comes from, its licence, a checksum and what it contains. None of them is in the repository: the test tool downloads them and checks the checksum.
Each world is prepared once with the real Vanilla server (schematics are pasted into an empty world, and the game is frozen before the first tick). Old worlds are not upgraded by Vanilla first: Soulshale upgrades their chunks, entities and player data itself when they load, with its own data fixers. Then the world runs on Vanilla and on Soulshale with the same triggers (for example, every lever flips after one second and a scripted survival player presses every button) and the same soak method as above: Soulshale compares a checksum of every tick, including the blocks, scheduled updates, entities and block entities with their saved data. At the first tick that differs, a full report is written; it shows which machine behaves differently and in which part of the game.
The scripted player stands where the world saved its player, or next to the machine for a schematic, protected from harm. Worlds run with random ticks on and, unless a world says otherwise, without natural mob spawning. A summary lists a world as inactive when nothing in its observed region changes, because then a match proves nothing. Passive worlds get a trigger so they do something: items dropped onto a hopper field, a redstone block that pulses a long redstone line, a lever that selects a cell of a trading hall, or summoned slimes.
Result of the first 65 worlds (1200 ticks per world): the first run matched 33 of 64 worlds. After five rounds of fixes, all 65 worlds match Vanilla tick for tick and none is inactive. Most fixes were real differences in Soulshale, for example moving pistons (also the collision of a minecart with the shape of a moving piston), the random numbers of loaded entities, leaf distance, the rounding of dropped items, hoppers, line of sight for mob targets, and items that slide with the friction of the block they stand on. Small scenarios pin these causes.
Command and data pack worlds. 12 more worlds are built for commands: six command block maps and minigames (a data pack minigame with about 2,900 functions, a parkour generator, an escape room, a boss with 43 always-on command blocks, an adventure map with 554 command blocks) and six data packs (a MIPS processor emulated in functions, a chess pack, an AFK display, a speedrun timer and more). They load with all three dimensions, the world's data packs and the saved command data (scoreboard, command storage, boss bars, game rules, scheduled functions). A seeded activation fuzzer presses command blocks, buttons, levers, pressure plates, signs with click commands and trigger objectives in a random but repeatable order. These worlds found real differences, now fixed: the number providers of Minecraft 26.3 in functions and /compute, data pack function lines longer than the command length limit, scores and teams of destroyed entities, and /data commands that copied the command storage instead of changing it in place. All 12 match Vanilla except one pack that Vanilla itself cannot repeat: it force-loads a large area in the first tick, and when that area starts to tick depends on Vanilla's chunk threads. Each such difference is in the list of known differences.
Sessions of real players
The server can record a session (debug.session-recording): the world as it was and every packet the players sent. Commands from a fixed list of game commands are kept too (no chat text, no administration), with player names replaced by anonymous ids. A recording can be played back on Vanilla and on Soulshale and compared tick by tick, like a scenario, so play that nobody wrote down in advance can also be checked. A recording can also be watched with the replay viewer. How to turn both on, what is recorded and the privacy note are on Operator tools: session recording and replay; the commands are on Admin commands: /soulshale.
Long recordings are not replayed from the start every time. A running recording writes a checkpoint every 10 minutes (debug.session-checkpoint-minutes), and a replay plays each segment between two checkpoints on its own. After a difference the replay resyncs: Vanilla saves its state at the differing tick, Soulshale continues from that state, and so one early difference does not hide the ones after it.
Bedrock players are not compared. The recording marks each player's edition. A Bedrock player is a translated connection, and what it sends is not what a Java client sends, so a comparison on Vanilla would compare something else. Such players are left out.
Real sessions found differences no scenario had shown. One example was a player's food that differed from tick 1148: Vanilla clears "on ground" when the server's own movement step of a player moves it up without landing, so a jump packet right after a landing is no jump and costs no hunger. Soulshale now does the same, and a scenario keeps it fixed. Another: a client that lags sends several movement steps in one server tick. Vanilla handles each step where it put the player, so a batch that starts in water keeps costing the exhaustion of swimming; Soulshale checked all steps at the last position and the saturation dropped a tick later. Each step is now checked at its own target, and a scenario keeps it fixed.
What is tested
| Test | Status |
|---|---|
| Game data (blocks, items, registries, packets, commands) is generated from the official server file when Soulshale is built (Data and version updates). | Built |
| Game data compared with what Vanilla holds in memory: registries, block states, items, packet IDs and the Vanilla data pack (biomes, dimensions, tags). | Built |
| Network packets recorded from Vanilla must be read and written back byte for byte. | Built, including chat, text, block and inventory messages and many more. The entity data of every summonable entity type and of the player is also checked against Vanilla's list (index and type of each value). |
| Commands are parsed like Vanilla: the same input gives the same result or the same error. | Built. This includes the syntax errors of SNBT and the bad component values of items. |
| Random number generators, noise and density functions compared value by value with Vanilla. | Built |
| Worlds generated by seed and compared chunk by chunk with Vanilla, for each generation step. | Built for biomes, terrain, features, structures (where they start, their pieces, whole large structures, every bastion variant) and light. Features are also checked when chunks are decorated in a different order. A separate check compares a whole area block by block with a world a Vanilla server generated, in the Overworld, the Nether and the End. A test also builds the terrain of many chunks on six threads in a scattered order and compares every chunk with the chunk built alone. A regression test checks that neighbouring chunks are decorated in Vanilla's order (see World generation). |
| Old worlds: chunks, entity chunks and player data of Minecraft 1.20 to 1.21.9 upgraded by Soulshale's data fixers, compared with the result of Vanilla 26.3's own world upgrade. | Built for eight worlds: the records are the same, record for record, including Vanilla's own quirks. Not covered: level.dat, saved data such as raids and scoreboards, and mod data. |
| Worldgen sweep: many seeds, all world types. | Built. Vanilla's own generator makes whole areas (one at the spawn and one far away, per seed) of Overworld, Nether, End, Amplified, Large Biomes and flat worlds, and Soulshale must match block by block, including biomes, heights, block entities and where structures start. Flat worlds with villages and strongholds are covered, and so is a data pack dimension with inline noise settings. The differences it found are fixed, except the rare ones from Java's sine and cosine (for example one iceberg in a Large Biomes seed, 24 blocks in 3 chunks; see Known limits). |
| Light sweep: many seeds, all world types, many block changes. | Built. Vanilla's own light engine lights areas of every dimension and world type. Then a script changes blocks in batches: roofs, shafts, caves, light sources, shaped blocks, chunk and section borders, the height limits, and an unload and reload of chunks. After the generation and after every batch, the light a client would receive must match Vanilla's cell by cell. The light update after a block change follows Vanilla's own queue and must give the same cells as a full recompute. |
| Recorded scenarios replayed and compared tick by tick. | Built. 645 scenarios in all: 147 for blocks (falling blocks, plant growth, fire, redstone parts, hoppers and containers, pistons (also items inside moving piston bases), pressure plates, spawners, signs, beacons, note blocks and many more), 16 for fluids, 20 across dimensions (portals, End gateways, ender pearls, /tp), 7 for advancements, 10 for redstone, 8 for light, 6 for chunk loading, 2 for restarts, 2 for lightning, many for commands and data pack functions, 72 for items (tools, throwables, bows and crossbows, tridents, the mace, shields, enchantments, effects), 9 for minecarts, player scenarios (fall damage, sleeping, six kinds of death, player fights, batched moves in water), 244 for mobs (at least one for every mob kind, with their AI, breeding, riding, conversions and raids), 13 for entities, and 18 random scenarios found by the generator. All but 5 match Vanilla tick for tick, random ticks included. The 5 that still differ at a known tick: two client-view scenarios about the End dragon (the level's random numbers differ in the first ticks of the fight, and a /kill of the dragon from the Overworld does not reach it in the End), one death scenario (from tick 21 the new player's client gets the drops of the cursor and the crafting grid a moment later than in Vanilla), a raid (it starts, counts down and spawns its first wave exactly like Vanilla, but the raiders walk towards the village differently from tick 551) and a wither that breaks a bee nest (from tick 23 the wither walks a different path to the bees; the nest and the bees match). Writing these scenarios found many differences in Soulshale, all fixed, for example in command messages, menus, trade prices, signs, collisions with multi-cell shapes, boss bar colours and the knockback of fights. |
The fast scenarios (cargo xtask parity quick). |
Built. The slowest ones are left out there. It also runs the packet check with 16 players (above). |
| Packets with tick phases on several threads equal those on one thread. | Built, with 16 and 64 players (see "Same packets with many threads" above). |
| Long runs against Vanilla by per-tick checksums, and recorded sessions of real players. | Built. Five soak scenarios. The farm matches Vanilla for all 48,000 ticks, the redstone build for the whole day of 24,000 ticks, the weather run for all seven days, and the village for all 48,000 ticks. Recorded sessions can be compared in segments from checkpoints and watched in the replay viewer; Bedrock players in a recording are left out. |
| 77 real worlds and schematics (redstone computers, pistons, TNT, hoppers, farms, villagers, mob farms, lag machines, command block maps, data packs) compared tick by tick. | Built. All 65 of the first group match Vanilla tick for tick (see above). Of the 12 command and data pack worlds, all match except one pack that Vanilla itself cannot repeat. |
| Coverage map of Vanilla's code, and random scenarios weighted by it. | Built (cargo xtask parity coverage). It is a measure of where tests are missing, not a pass or fail. |
| Test players join, move and see each other. | Built: two test players join a server in memory, and place, break and drop blocks. Older clients (1.20.1, 1.20.2, 1.20.4, 1.20.5, 1.21, 1.21.4, 26.1, 26.2) join, walk and see a 26.3 player, also through the proxy; Bedrock with its oldest and newest supported version. A strict headless Bedrock test client joins over RakNet and NetherNet, stays in the world, walks, chats and opens the inventory, and plays a whole session (breaking and placing blocks, a chest, crafting, combat, commands, advancement toasts, dialogs, the world border, the Nether, dying, sleeping, a totem, breeding and more). It fails on any packet a real Bedrock client would reject. |
| Load test with many bots, measuring tick time, RAM and network by player count. | Built (cargo xtask loadtest), plus a benchmark suite that runs the same scenarios on Paper, Vanilla and Pumpkin. Results: Benchmarks: Soulshale vs Paper. |
| One test per known exploit. | Built for the network, the data decoders, commands, breaking and placing blocks, item data and inventory clicks, plus fuzz tests (random hostile input), also on the loom, cartography table, crafter and lectern menus and special crafting recipes to catch item duplication. A player who moves into a block or through a wall is set back like in Vanilla. Other gameplay exploits Planned. See Security by design. |
See also: Known limits, Data and version updates.
Next: Data and version updates.