B7.1.3 · dive 3 of 3 · module B7.1
The privacy boundary.
A player sees only their own attempts, best score, and the leaderboard; the secret and other players’ guesses never cross, and in a blind Golden Room even their own score waits for the reveal.
The idea
codemojex · privacy-safe viewsA Codemojex player sees three things about a game: their own attempt history with scores, their best score, and the leaderboard ranked by best score. They never see the secret, and they never see another player’s guesses — not the values, not the positions. That line is held at the facade and the channel by privacy-safe views, so the data that would spoil the game is filtered before it leaves a system rather than after.
In a Golden Room the boundary is total. Because the mode reveals no feedback, a player does not even learn their own score until the room closes; the channel carries the timer and the room’s state, and nothing about how close anyone is. The secret stays sealed behind a commitment until the reveal, so the boundary protects not only one player from another but every player from a result that does not exist yet.
This is why privacy is a property of the views and the boundary, not of the client. A request that asks for a guess it does not own is refused at the system, an operator screen reads through the same views, and a blind game withholds the score by policy rather than by hoping the client hides it. The reference implementation treats what a player may know as part of the contract, enforced where state lives.
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
- Helland — Life Beyond Distributed Transactions (CIDR 2007)entities keyed by id, and a record of truth a game can audit
- Erlang/OTP — the gen_server behaviourthe system boundary a privacy-safe view is enforced at
- The Go Blog — Share Memory By Communicatinga boundary that passes a message, not a reference to private state
Related
- BCS — the course homethe law, the id anatomy, the chapter map
- Echo Persistencethe durable floor beneath the bus