Skip to content

docs(native-workflows): TLA+ specification of the native protocol - #1864

Merged
v1r3n merged 1 commit into
design/native-workflowsfrom
docs/native-workflows-tla-spec
Nov 26, 2026
Merged

v1r3n merged 1 commit into
design/native-workflowsfrom
docs/native-workflows-tla-spec

Conversation

@mp-orkes

@mp-orkes mp-orkes commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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/spec has NativeProtocol.tla, 15 model-checking scenarios (MC_N*.tla), and the Python checkers.
  • The files are the ones that were in proposals/native-workflows/spec in #1832. The content is not changed.
  • No code changes.

How to test

  1. Get tla2tools.jar.
  2. In specs/native-workflows/spec, run TLA2TOOLS=/path/to/tla2tools.jar python3 check.py.

Step 2 needs specs/workflow-semantics from #1846. See the notes.

Notes

  • This PR is stacked on #1832. Merge #1832 first, then this PR.
  • check.py uses the checking engine of the workflow semantics specification through ../../workflow-semantics. That folder comes with #1846, as specs/workflow-semantics. The files are in specs/ here for that reason. Until #1846 is merged, the checker cannot run from this branch.
  • The model checker was not run for this PR. The files moved without changes.

🤖 Generated with Claude Code

@mp-orkes mp-orkes self-assigned this Nov 19, 2026
@mp-orkes
mp-orkes marked this pull request as ready for review November 19, 2026 23:49
@github-actions github-actions Bot added size: XL Applied by the review-policy workflow needs: 2 approvals Applied by the review-policy workflow labels Nov 19, 2026
@github-actions

Copy link
Copy Markdown

👥 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 review-policy / approvals check.

`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
mp-orkes force-pushed the docs/native-workflows-tla-spec branch from 6dd8a58 to 9beb5ab Compare November 24, 2026 20:12
@v1r3n
v1r3n merged commit 020053b into design/native-workflows Nov 26, 2026
12 of 13 checks passed
@v1r3n
v1r3n deleted the docs/native-workflows-tla-spec branch November 26, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs: 2 approvals Applied by the review-policy workflow size: XL Applied by the review-policy workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants