B2.6.3 · dive 3 of 3 · module B2.6
One contract, proven at the boundary.
Native and pure are safe only if they agree, so the boot self-check asserts both produce the committed vector — placement(USR0KHTOWnGLuC) = 234878118 — before a node serves. Speed may vary at the boundary; meaning may not.
The idea
echo_data · native.ex, branded_id.exTwo implementations of the same contract are only safe if they agree, so the boot proves it. The self-check mints, encodes, decodes, and hashes a known id down both paths and asserts the committed vector — the same placement(USR0KHTOWnGLuC) = 234878118 — then returns the mode that served. A node whose native core disagrees with the pure one never reaches its first message.
This is what lets the native path be an optimization rather than a fork. Because the contract is pinned by a vector and checked at start, the question of native or pure is a question of speed, never of meaning: an id placed by the Rust core lands in the same slot the Elixir core would choose, in the tries, in the tables, and in any other runtime that computes the same hash. The boundary is where speed is allowed to vary and meaning is not.
Codemojex spans machines and builds, and this is why they agree. A room on a native node and a worker on a pure node resolve a player’s id to the same value because both proved the contract at boot, not because they happen to share a binary. The gate decides what may enter; the contract decides that everyone who enters is understood the same way.
The doors
the sibling coursesEchoMQ — the protocol, in depth
The bus B3 narrates, taught rung by rung: the keyspace, the Lua inventory, and the 3.0 Stream Tier — XADD, XREADGROUP, XACK — with conformance on Valkey.
Redis Patterns Applied
The substrate patterns under the bus: sorted sets, atomic Lua moves, locks, and streams — the judgement layer.
/echo-persistenceEcho Persistence — the durable floor
Beneath the volatile tiers: the Graft page engine built twice, the commit-LSN loop, and the stream archive on Tigris. Where Part I says state lives somewhere, this says where it lives durably.
References
sources · relatedSources
- King — Announcing Snowflake (2010)the id the codec encodes and hashes, the same on every path
- Helland — Life Beyond Distributed Transactions (CIDR 2007)a contract entities agree on across nodes and builds
- Erlang/OTP — the gen_server behaviourthe process boundary the gate stands at
Related
- BCS — the course homethe law, the id anatomy, the chapter map
- Echo Persistencethe durable floor beneath the bus