Skip to content

Parity with vanilla

Changing. Follow: #272, #507, #656, #715

A bare “matches vanilla” is too vague to test, so mcrs makes every subsystem declare one of three policies, and each policy says what must match and what may differ. A claim on a page or in the README is only as strong as its policy and its test.

Every subsystem declares one of three levels

Section titled “Every subsystem declares one of three levels”
Level Meaning Examples in mcrs
exact observable behaviour matches very closely the network protocol, NBT and Anvil bytes, world generation for a seed, the arithmetic of player movement
semantic the gameplay result matches, the order of work inside a tick may not lighting, fluids, redstone, neighbour updates, random behaviour (distributions, not vanilla’s random sequence)
intentional deviation vanilla is accidental or pathological, so mcrs differs on purpose and writes it down each one has an entry in the spec, with the rule, the reference behaviour, the reason, what the client sees, the bug report of the game if there is one, and what a differential test does

The project has three tiers of determinism because neither extreme works.1 Matching the reference everywhere would mean copying the order in which Java iterates hash maps, while matching it nowhere would make parity untestable. The full table per subsystem is in section 2 of the sharding design note.

A specification in docs/spec/ states behaviour as rules. Each rule has a kind, and the kinds are defined in docs/spec/README.md.

Kind What the rule states
Wire Bytes, ids and codecs that the vanilla client decodes. These are exact.
Client agreement The server must compute what the client computes, for example the parse of a command line.
Semantic The meaning. The order of internal operations is left open.
Layout A position, size or colour of the client GUI, tested by a screenshot at a known scale.
Deviation mcrs differs from the reference on purpose, because the reference has a defect or an accident there. The rule states the expected behaviour.
Quirk mcrs keeps an accident of the reference, because the vanilla client, a data pack or a save file depends on it. Only the project owner makes a rule a quirk.
Unspecified An implementation picks. A parity test must not compare it.

Take world generation, the only place where the project says “matches vanilla in parity tests” today. The claim means that the density, surface, biome and structure outputs equal the oracle on the dumped seeds and chunks. It does not mean “bit for bit on any seed”. Everything else in Status has its own wording. Three things stand behind a claim like this one.

The first is the oracle dumps. tools/vanilla-oracle is a standalone Gradle project that runs parts of the game and writes their output as fixtures. Its world generation tasks start no server and no client. They load the game’s own registries, sample its world generation and write binary dumps, and the Rust tests compare them element by element. A second run gives byte-identical files. The dumps cover seeds 1, 2 and 42 and a handful of chunk positions, so this is a check on reference seeds and not on every seed.

The second is the fixtures. tools/fixtures.json lists 57 captured fixtures. About 14 of them cover world generation, and the rest cover other areas such as commands, protocol and physics. A fixture is captured from the game and checked in. After a snapshot update, recapture regenerates them, as One game version at a time explains.

The third is the provenance labels. Each rule carries a label that says where it came from, so you know how much to trust it. For example, source_suggested means that the author read the reference and the rule states only behaviour. When an experiment against the game confirms the rule, the label changes to a confirmed one. A specification with a source_suggested rule, or with an open point in its section “Unresolved”, is not ready, and nobody starts to implement it. The details are in the registry of the spec folder.

Parity never comes from reading the game’s code

Section titled “Parity never comes from reading the game’s code”

Specification authors may read the game’s code and implementers may not, and one person does not hold both roles for one behaviour. A person who read the code for a behaviour can still deliver its implementation by giving the implementer role to an AI agent that has no access to the game’s code. Clean-room in practice has the full rule. The artefacts the game produces are allowed evidence: the data pack, the reports, the oracle dumps and captured packets. Specs and parity tests shows how to add a rule or a parity test.

The owner also allows GrimAC as a source for authors of the client knowledge and reach specifications, under the same clean-room split. Rules from that source carry the provenance label design: they are mcrs choices and do not establish vanilla parity.4

Connection acknowledgement tracking and the baseline melee reach check are implemented. The reach specification also records black-box confirmations of some vanilla distance bounds. Reach against what a client saw and tracking applied changes beyond movement prediction remain unfinished. The specification index lists readiness limits. The lag-compensation note lists the implemented pieces and the open work.5

Next: One game version at a time.

  1. Works#367 The decision that defines the three tiers of determinism. ↩

  2. WIP#272 Tracks recording vanilla outcomes as fixtures. ↩

  3. WIP#190 Tracks redstone circuits that behave as in vanilla. ↩

  4. Works#1086 Adds the client knowledge and reach specifications and their design note. ↩

  5. Works#1106 Adds acknowledgement tracking, baseline attacks and recorded reach bounds without completing lag compensation. ↩

Sources and verification

Verified: 26.4-snapshot-7, 1cf84286c, 2026-11-30

Related open issues:

  • #272 WIP Record vanilla outcomes and pass ticks of the test pack as fixtures
  • #507 WIP Report the specification rules that no test checks
  • #656 WIP Specifications mark edition-specific rules
  • #715 WIP Specifications state expected semantics; a reference accident is a deviation unless the client needs it