Repository navigation
Share admitted state sequences and reconcile refused gestures - #2188
Merged
Merged
Conversation
Generate Node fixtures from the current Python projection rather than keeping a serialized copy. Replace isolated checks with one real edit, undo, refusal and revision sequence, retaining browser coverage for both arrival orders. Return a fresh reading on final event refusals and adopt it through the existing client path before ordinary cleanup. Derive snapshot and historical document metadata from one owner, including canonical revision labels, so a truncated reading cannot inherit a future stamp.
leaf-agent
previously approved these changes
Oct 9, 2026
# Conflicts: # tests/served_records.json
leaf-agent
approved these changes
Oct 9, 2026
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.
An undo refused after another tab withdrew the same action could temporarily restore the obsolete winner, because refusal responses carried no fresh state. Every final event response now carries the current reading, and the existing client state-application path adopts it before ordinary refusal cleanup. Existing browser journeys cover both response/poll orders and read acknowledgements; no new publisher API is needed.
The publisher and Python projection now share one real admitted edit → undo → refusal → revision sequence, including historical retraction boundaries and dependent undo cleanup. Node fixtures invoke the current Python served-state producer directly, replacing a 920-line committed fixture and its drift check. Two Python cases are removed; existing browser contracts remain and one arrival-order parameter case is added. Generation costs about 0.5 seconds per importing Node process in one measurement.
Making the fixture use real metadata exposed a historical snapshot carrying a stamp from later in its log. Live reads, snapshots, historical truncation, exports, previews and model fixtures now use one pure document-descriptor owner. The server also supplies canonical revision labels instead of the browser calculating them again.
Validation: focused model/snapshot/admission checks, 43 publisher tests, 275 runtime tests, real browser journeys in both arrival orders and bookkeeping refusal, pre-commit and independent reviews. Planted withdrawal, refusal, retraction and serialized-coordinate faults fail the shared sequence; the coordinate fault passes the former isolated selection. Served startup requests are unchanged.