Repository navigation
[fence 1/9] libsql-server: document the namespace fence contract - #41
Draft
tszymczyszyn-shopify wants to merge 1 commit into
Draft
tszymczyszyn-shopify wants to merge 1 commit into
tszymczyszyn-shopify wants to merge 1 commit into
Conversation
Add docs/NAMESPACE_FENCE.md, the contract and design for a durable, operation-owned namespace fence: source and target state machines and permission matrix, admin API, stable outcome codes and their mapping to HTTP, Hrana, gRPC, the write proxy and replication, metastore schema and CAS semantics, write admission generations and positive drain, read fence, quarantined target lifecycle and the reusable import capability, restart and eviction rules, fail-closed metastore recovery, deployment flag and legacy-binary protection, code-path coverage, test strategy and the acceptance-test map. Co-authored-by: Tomasz Szymczyszyn <tomasz.szymczyszyn@shopify.com>
This was referenced Oct 5, 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.
Adds
docs/NAMESPACE_FENCE.md, the contract for the operation-owned namespace fence: state model and permission matrix, admin API, durable state, outcome codes and their mapping per protocol, write admission and positive drain, source read fence, target lifecycle, restart and failure semantics, deployment and compatibility, and observability.This is the final version of the document from the source PR, landed first so the design can be reviewed before any code. The code pieces that follow implement it; none of them edits the document.
Review focus
The state model (section 3), the outcome codes (section 6), and the deployment/compatibility rules (section 13). Agreeing on these first makes the rest of the stack a check against the contract.
Commits
Stack
Part 1 of 9, based on
v0.9.30-shopify-patches. Retargeted from #35 with no feature change: applied in order, the 9 PRs carry #35's fence diff (stable patch ID70d97d6a) onv0.9.30-shopify-patches. Review and land bottom-up, restacking after each squash or rebase merge.