Check receiver batch boundaries with generated histories - #10
Open
jeregrine wants to merge 1 commit into
Open
Conversation
This was referenced Sep 9, 2026
jeregrine
added this pull request to stack #14
September 9, 2026 20:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The local command model settles after each operation, so it cannot detect receiver behavior that changes with replication batch boundaries. Matching ETS indexes alone also cannot establish that the resulting contents or lifecycle events are correct.
Fix
Generate ordered registry and PG histories and deliver each history through several legal batch partitions: singleton, buffer-minus-one, buffer, buffer-plus-one, and whole-history messages. Compare every partition against an independent map-based oracle for settled entries and per-key event order, including metadata and removal reasons.
Add a shared fixture that creates fresh supervisors, owners, and a mailbox-preserving observer for every example and shrink attempt. Explicit barriers settle event delivery, and teardown stops subscribers before Registry.
Supporting information
Stacked on #8; this is the first follow-up in the batch boundaries → cluster isolation → fairness → TTL stack. #7 remains independent.
These are controlled receiver-protocol scenarios using real local owner PIDs. They do not traverse Erlang distribution or exercise sender batching. Production behavior is unchanged.