feat(node): add durable replicated KV foundation#7
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Jul 16, 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
Ships Cloud9's first durable replicated database surface and aligns the public specifications with the product thesis: an open-source Spanner and MLIR for databases.
The branch adds a bounded segmented WAL, a restart-safe Raft node, a ConnectRPC key-value API, Jepsen coverage, and fail-closed CI checks. It also replaces obsolete SQL/KV-only and HLC-fallback language with the multi-dialect IR and capability-gated TrueTime architecture.
Motivation
maincontains the reviewed Raft correctness fixes but not the durable node, database API, WAL, or Jepsen harness built on top of them. Keeping those commits outsidemainleaves the repository without the runnable system described by its current tests.The existing specifications also claimed completed features and an HLC fallback that the product no longer intends to support. The rewritten specifications separate implemented behavior from target architecture and make unsupported consistency modes explicit errors.
No linked issue.
Changes
db/DBharness, failure-detection tests, and CI jobs that reject client exceptions and false-green recovery.missing_docsfor those crates.Testing
cargo test --workspacepassesJepsen unit result: 9 tests, 32 assertions, 0 failures, 0 errors.
Security Checklist
Code Quality
cargo fmt --allappliedcargo clippy --workspacepasses with no warningsunwrap()in non-test code (useexpect()with context or?)Breaking Changes
Documentation