Repository navigation
Spec 0004 amended: an ordinary key view use commits no step - #31
Merged
Merged
Conversation
Entries 1 and 2 shipped and were measured through Doorlist's cipher benchmark on generation-pinned rings: at eight callers a typical seal is near 10 us with a view against 2.3 us without, on three steps as on four. Shedding one step at a time will not meet a p99 budget of 20 us. The amendment withdraws entry 3 as first written (a count kept in Shared would have raised three steps to four) and replaces it with two entries that move per-use bookkeeping onto JDK atomics, so an ordinary use commits nothing. Spec 0265's promises and the public API are unchanged. Open questions answered by the owner, 24 November 2026. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Spec only, no code.
Why an amendment
Entries 1 and 2 (#29, #30) shipped and were measured. One
KeyView.usingwent from four committed steps to three, and it is not enough.Doorlist's
CipherBench, changed locally to seal through generation-pinned rings so each seal uses a view, p50 on a heavily loaded eight-core machine:p99 was not steady enough under that load to report. The budget is p99 at most 20 µs, and the typical seal at eight callers is already near 10.
What changes in the spec
Sharedneeds a step to add and a step to take away, so it would have raised three steps to four. My miscount.key-callers-atomic-count: caller admission by an atomic count, no committed step. Ceiling two.key-material-uses-outside-steps: uses tracked in atomics. Ceiling zero for an ordinary use.Spec 0265's promises and the public API are unchanged. Borrowing, closing, forgetting and revoking stay committed steps.
Open questions
All five answered by the owner on 24 November 2026, each as recommended. Question 2, how to prove two races that
takingTurnscannot interleave, carries a stop condition: an entry that cannot pin its race down says so, and a seam in core becomes its own spec.🤖 Generated with Claude Code