Repository navigation
docs(native-workflows): TLA+ specification of the native protocol - #1864
Merged
Merged
Conversation
v1r3n
approved these changes
Nov 19, 2026
mp-orkes
marked this pull request as ready for review
November 19, 2026 23:49
|
👥 Review policy — action needed. This PR changes 3,978 lines, which crosses the large-PR threshold (2,000). Large PRs require 2 approvals; it currently has 1. 1 more to go. This is a review-policy gate, not a CI/test failure — see the |
`NativeProtocol.tla` models how a native workflow runs: the definition that grows, the continuation markers, leases, replays, and the faults the protocol must survive. The folder also has 15 model-checking scenarios and the Python checkers that compare the model with the drawing rules and with recorded runs. The files were in `proposals/native-workflows/spec`. They are now in `specs/native-workflows/spec`, beside `specs/workflow-semantics`: `check.py` uses the checking engine of that folder through `../../workflow-semantics`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
mp-orkes
force-pushed
the
docs/native-workflows-tla-spec
branch
from
November 24, 2026 20:12
6dd8a58 to
9beb5ab
Compare
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.
Why
#1832 had the server change for native workflows, its design documents and the TLA+ specification of the protocol in one PR. The specification is 40 files that no code, build file or document refers to. This PR takes it out, so that it can be reviewed by itself.
What changed
specs/native-workflows/spechasNativeProtocol.tla, 15 model-checking scenarios (MC_N*.tla), and the Python checkers.proposals/native-workflows/specin #1832. The content is not changed.How to test
tla2tools.jar.specs/native-workflows/spec, runTLA2TOOLS=/path/to/tla2tools.jar python3 check.py.Step 2 needs
specs/workflow-semanticsfrom #1846. See the notes.Notes
check.pyuses the checking engine of the workflow semantics specification through../../workflow-semantics. That folder comes with #1846, asspecs/workflow-semantics. The files are inspecs/here for that reason. Until #1846 is merged, the checker cannot run from this branch.🤖 Generated with Claude Code