Repository navigation
docs: store and extension storage docs match the code (#993) - #1004
Merged
Merged
Conversation
- STORE.md: the derived objects are interval, unique and list indexes, not only the interval index. - CAPACITY.md: a sorted or filtered list is a keyset query through an index since #951; the in-memory path runs only while an unorderable row exists. - audit SECURITY.md: atomic capture is the write's SQLite transaction and outbox row, not an atomic file replace. - auth SECURITY.md and README, STORE.md, CAPACITY.md: the shared sign-in limit is the default; betterAuth.rateLimit can replace storage, window, max and customRules (verified by calling betterAuthOptions). - Lease timing lives in STORE.md's several-serving-processes section (and SERVER_LEASE); the auth and audit READMEs, EXTENSIONS, OPERATIONS and CAPACITY link to it, and the runtime card names the constants. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Fixes #993
Each finding was re-located and re-checked against current
main(after #984, #986, #991 and #998).docs/STORE.md, storage bullets): the page said the interval index was the only derived object.packages/store/src/store.tsdropStaleIndexesbuilds and drops three families:store_intervals_*,store_unique_*([Gap]: Store: a transfer recipient directory can't be unique across owners, so a lookup by name is spoofable #953) andstore_list_*([Request]: Store: order sorted and filtered lists in SQL near the 10,000-record maximum #951). The bullet now names all three and links the sections that describe them.docs/CAPACITY.md, extension storage bounds table): the row now says a page is one counted keyset query through an index, and ordering in memory only happens while the collection holds a row that index cannot order. It links toSTORE.md#sorting-and-filtering. The "then read every record" sentence in the pre-[Request]: Store: order sorted and filtered lists in SQL near the 10,000-record maximum #951 measurement section is historical and stays.packages/audit/SECURITY.md): "atomic file replace" is replaced with the write's singleBEGIN IMMEDIATESQLite transaction, which inserts the event intostore_audit_outbox.packages/auth/SECURITY.md,packages/auth/README.md,docs/STORE.md,docs/CAPACITY.md): the shared limit inauth.sqliteis the default. I ran the point the issue left unverified by callingbetterAuthOptionswith an override.betterAuth.rateLimitreplacesstorage,window,maxandcustomRules, and acustomRulesreplaces the default sign-in and sign-up rules rather than merging with them.enabled: true, the client-address header and telemetry off are forced. The README had said "10 sign-in attempts a minute" as if the operator could not change it; that is now stated as the default.STORE.md#several-serving-processes-on-one-hostis the home, withSERVER_LEASEinpackages/core/src/host-lease.tsas the code source. The auth and audit READMEs,docs/EXTENSIONS.md(joinHostLeaserow),docs/OPERATIONS.mdanddocs/CAPACITY.mdno longer repeat 5 s or 20 s. They link to it instead. TheRIM-STORE-PERSIST-001card indocs/RUNTIME-IMPLEMENTATION.mdkeeps the behavioral contract but namesSERVER_LEASE.heartbeatMs,ttlMsandwriteMsrather than copying the values.docs/FRAMEWORK.mdalready linked without numbers, so it is unchanged. The repeated mentions insideSTORE.mditself (the disk-full section) are on the authoritative page and stay.Edits to
docs/EXTENSIONS.mdanddocs/RUNTIME-IMPLEMENTATION.mdare limited to single phrases, to keep conflicts with #987 and #996 small.origin/main(#998) was merged in, not rebased.Evidence:
npm run verifypasses locally after the merge, includingcheck:docslink and anchor checks and the rebuiltllms-full.txt. This PR changes docs only; runtime behavior is unchanged.🤖 Generated with Claude Code