Repository navigation
fix(store): owner ids only to members; transfers independent of the recipient; issuers need members (#972, #973, #974) - #998
Merged
Conversation
…f the recipient; issuers need members (#972, #973, #974) - #972: activation refuses showOwner on any named readers mount without members, so only members ever receive _owner (SECURITY.md stays true). - #973: the amount property's schema bounds a balance from below only (type, minimum, exclusiveMinimum, annotations); the lowest min times maxRecords must stay within 2^53 - 1; every write measures maxRecordBytes with each amount at its widest. A credit can then never break the schema, overflow or cross the size limit; anything left about the credited record (a row stored outside the declaration) answers one fixed 409 transfer_conflict. transfer_limit and 413 describe the debited record only. HTTP, StoreExports and host transactions share the step. - #974: an owned collection refuses a negative transfer min without members, naming the issuer pattern. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ixes-972 # Conflicts: # packages/store/CHANGELOG.md
Store unpacked 619315 exceeded 616448 after #951 and the #972-#974 fixes; every package re-measured on Node 26 and reset by the policy comment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ixes-972 # Conflicts: # packages/store/CHANGELOG.md
jimhoyd
enabled auto-merge (squash)
September 29, 2026 22:58
…generate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 29, 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.
Fixes #972
Fixes #973
Fixes #974
Builds on #984 (store
editable/deletablestates andunique), which merged into main before this branch was cut. Main was merged in (#986, #991); no rebase.Design
#972: owner ids only to members. Activation refuses
showOwner: trueon any named readers mount that has nomembers, a projected directory included. A gated sibling mount does not count as a gate for it. SECURITY.md's "only members of the declared membership collection receive it" is now enforced rather than assumed.#973: a transfer's answer no longer depends on the recipient. The review's oracle was a credit-side refusal. Under the declaration, a credit now cannot fail:
type,minimum,exclusiveMinimumand annotations. Activation refusesmaximum,exclusiveMaximum,multipleOf,enum,constand combinators. A credit only raises a balance, so a lower bound can never refuse it.mintimesmaxRecordsmust stay within 2^53 - 1. The sum is 0 and no record goes below the floor, so no balance can leave the safe integers.maxRecordByteswith each amount property at its widest value,-9007199254740991. A later credit therefore cannot push a record over the limit: the write that brings a record near the limit is refused, for its owner, instead.409 transfer_conflictwith no detail.transfer_limitand413now describe the debited record only.Conservation, the documented debit-side errors and the order of checks are otherwise unchanged. HTTP,
StoreExports.transferand a host transaction'stx.records(n).transferall runCollection.transferIn, so all three are covered. These rules apply to shared collections as well, so the amount property has one declaration contract.#974: issuers need members. On an owned collection, a negative
minwithoutmembersis refused at activation. The message names the issuer pattern. A shared collection keeps the route as its gate, because anyone who reaches a shared transfer mount can already move any record's balance.No back-compat is kept (no external users). Writes stay in
BEGIN IMMEDIATE, and the declaration fence is untouched.Also
build:addons: storeurlcode.json,artifacts/store-schema, README reference), the OpenAPI 409/413 texts, docs/STORE.md, SECURITY.md, the README, llms.txt and the CHANGELOG.maximumwas dropped from the shared test balance schemas (test/disk-full*,test/multiprocess.integration.ts).Evidence
readers-grid.test.ts([Bug]: Store: showOwner on an ungated projected readers mount gives every signed-in user every owner's principal id #972: named mounts, activation throughdirect, and no_owneron the ungated directory) andtransfers.test.ts([Bug]: Store transfers: transfer_limit and record_too_large on the credited record disclose another owner's hidden balance #973: every refused keyword, the supply bound, the review's 263/264 probes now both 200, the create size reserve, a hand-edited row answering the fixedtransfer_conflictwith nothing moved; [Bug]: Store transfers: a negative min without members is accepted, so every signed-in user can mint #974: the owned refusal and the shared pass).npm run verifyandnpm run test:packageare green locally after the final merge of main.Limitations
🤖 Generated with Claude Code