feat: add state replicator crate on top of the engine - #25
Open
bmuddha wants to merge 1 commit into
Open
Conversation
This was referenced Jul 13, 2026
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
bmuddha
force-pushed
the
engine
branch
2 times, most recently
from
July 15, 2026 19:59
525819d to
82f61e0
Compare
bmuddha
force-pushed
the
engine
branch
2 times, most recently
from
July 21, 2026 08:51
5a1e1f0 to
9bdaec8
Compare
bmuddha
force-pushed
the
replicator
branch
2 times, most recently
from
July 21, 2026 19:46
59811d3 to
f9eeb4d
Compare
bmuddha
force-pushed
the
replicator
branch
2 times, most recently
from
July 22, 2026 20:30
55d60f6 to
1be4057
Compare
bmuddha
force-pushed
the
engine
branch
2 times, most recently
from
July 23, 2026 17:57
d900818 to
9b3afe1
Compare
bmuddha
force-pushed
the
replicator
branch
2 times, most recently
from
July 23, 2026 18:53
996c13e to
80d6710
Compare
bmuddha
force-pushed
the
engine
branch
2 times, most recently
from
July 23, 2026 19:21
088842b to
d059e37
Compare
bmuddha
force-pushed
the
replicator
branch
2 times, most recently
from
July 27, 2026 13:19
482523d to
a16851e
Compare
bmuddha
marked this pull request as ready for review
July 28, 2026 12:15
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.

What changed
Added authenticated state replication over the engine, including a leader-side
TCP dispatcher, follower client, versioned protocol, snapshot fallback, and
full-stack replication coverage.
Why
Authorized followers need to resume from an exact durable cursor, catch up
without duplicate application, and recover from a snapshot when the requested
stream is no longer retained.
Closes #27.
Impact
allowlist and clients verify the canonical engine authority.
distinct-key followers are terminal.
accountsdb snapshot after validating the requested cursor.
boundaries flow through the external pacer to preserve ordering.
Reviewer notes
The security boundary is the canonical signer plus follower allowlist. The
durability boundary requires a follower to flush before every handshake and to
flush its cursor before dumping volatile state during shutdown.
Follow-up
Transport encryption, key rotation, and dynamic allowlist management remain
outside this change.