fix: state setup? on the player row that already carries it #112
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/tick-snapshot-setup-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
World.TickSnapshot.put_player/3writes nine keys onto a player row and twoplaces said eight:
t:World.TickSnapshot.player_row/0, and the guard test thatexists so that nobody adds a field to that row quietly.
setup?— the factContract.Aggressionreads to leave a player who has not finished first-loginsetup alone — arrived without either being told.
The test is the visible half and was red on
main. The type is the half withteeth: an Elixir map type is closed unless it says otherwise, so a nine-key row
against an eight-key contract is a mismatch that nothing at runtime will ever
report and that a green suite cannot see.
Both now name the field, and the typedoc says three facts ride this row rather
than two, with the reason unchanged — the aggression scan is a point lookup per
shortlisted candidate, the same access pattern as an encoder against the same
row.
World.TickSnapshotTestpasses. Nothing else is touched.