Design format 4 — two-tier writes + cross-process group commit#19
Merged
Conversation
The full spec for the committed rungs 4-5, in Section 6: the classification insight (a write acks at durability iff its outcome is client-determined), tier-A intent appends with idempotent-by-pk folds, tier-B lease-elected leader batching with verdicts in log entries, the lease-is-performance-never-correctness safety keystone, the failure matrix, and the honest physics. Storage layout gains queue/ and lease.json; Section 14 marks the rung as designed. Design only — no code. Implementation follows as its own PR series. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The mechanism sentence still described only formats 1-2 (one CAS on one object); format 3 arbitrates on log slots. Restated: the guarantee is format-invariant, the arbitration point is per-format, and format 4's designed-not-shipped envelope is acknowledged with its floor. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 10, 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.
What
The full design for the committed track's big rung — format 4: intent queues + lease-elected cross-process group commit — written into
LARVA-DESIGN.md§6 (new subsection "Two-tier writes and cross-process group commit") plus the §5 layout tree and a §14 status update. Design only; no code changes.The design in five sentences
t.uuid()/ leasedt.sequence()), no other uniqueness constraints.queue/prefix — durable at ack, zero contention, folded into the log later by a lease-elected compactor whose folds are idempotent by construction (client-generated pks + skip-on-existing-pk), with own-writes overlaid so read-your-writes holds.Decision points to bless (or veto) before implementation
larva({ fastAppends: false })escape hatch if you want belt-and-suspenders.committedAt/time-travel granularity for those rows is the fold commit. Documented honestly rather than hidden.Next
On merge, implementation starts as its own PR: core (queue/lease/fold/verdict machinery + classification), then the test gauntlet extension (leader kill, lease steal, crash-mid-fold, mixed-tier property harness), then docs/bench.
🤖 Generated with Claude Code