Design scenario-based sync verification for reproducible convergence testing - #1438
Closed
slashv wants to merge 5 commits into
Closed
Conversation
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.
Important
This is a stacked draft based on #1406 (
schickling/2026-07-15-intent-design) and should be reviewed and merged after it. PR #1406 establishescontext/as the current intent layer and RFCs as the proposal pipeline. This architecture therefore starts as an RFC; once accepted and implemented, its durable contracts should converge intocontext/02-system/09-verification/.Problem
LiveStore has targeted sync simulation hooks and tests, but no unified, serializable, reproducible architecture for exercising concurrent clients, network and backend failures, convergence, and trace inspection.
Writing this design directly into
context/would incorrectly describe an unimplemented proposal as current system intent. We need to develop and review the architecture first while preserving a clear path into the intent hierarchy introduced by #1406.Solution
Add RFC 0003, Scenario-Based Sync Verification, defining a direction for:
The RFC deliberately leaves the concrete scenario file syntax open until the runtime model is validated. It changes no runtime behavior. Once the proposal is accepted and implemented, the resulting system contracts should be distilled into the verification section of
context/; implementation detail and operating guidance can remain in contributor documentation.Validation
git diff --check upstream/pr-1406...HEADdt lint:full:fix,dt ts:check, ordt test:run. The repository'sdevenvremained in Nix environment evaluation after warning that the user was not trusted to configure Cachix, and never reacheddt. This is a documentation-only draft with no executable changes.Demo (optional)
Related issues