Repository navigation
OBJ-83 — Two-client convergence integration test - #29
Merged
objectgyan merged 1 commit intoMay 17, 2026
Merged
objectgyan merged 1 commit into
objectgyan merged 1 commit into
Conversation
OBJ-83 M5.3 — Two-client convergence integration test
Milestone: M5 · Wave: 2 SummaryAuthor an integration test that spawns two Y.js clients (Node) against the live API, performs concurrent edits, and asserts convergence + no data loss. Acceptance
Validation
Branch / PRBranch from |
objectgyan
added a commit
that referenced
this pull request
May 17, 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.
Summary
tests/yjs-convergence/convergence.js— a Node.js harness that spawns two WebSocket clients against the live API, performs concurrent and interleaved Y.js updates, and asserts both clients converge to identical SHA-256 state-vector within 5 seconds.YJS_DIVERGE=1mode deliberately withholds relay to client B, producing a clear diff failure (exit 1) to validate the assertion is not vacuous.yjs-convergenceCI job to.github/workflows/ci.yml— starts ephemeral Postgres + API, runs positive and negative paths, total budget ≤ 5 minutes.Test plan
node tests/yjs-convergence/convergence.js http://localhost:5199exits 0, 12 assertions pass, state vectors equalYJS_DIVERGE=1 node tests/yjs-convergence/convergence.js http://localhost:5199exits 1, diff message shownscripts/validate-obj-83.ps1exits 0 locally (proved via validation artifacts)validation/obj-83-db.txt— 4 OBJ-83 documents + 4 snapshot rows confirmedvalidation/obj-83-api.txt— full convergence + divergence run transcript captured