Repository navigation
test(store): measure the plumbing declared intervals and transfers remove (#902 item 6) - #965
Merged
Merged
Conversation
…move (#902 item 6) Host-transaction counterexamples of the store-booking and store-credits recipes, as operator extensions over StoreExports.transaction, run against each recipe's own fixtures (plus a retry fixture run against both). scripts/docs/measure-plumbing.ts counts them; docs/FRAMEWORK.md records 137 and 170 lines of trusted code removed, with the method and caveats. SQL ordering (#902 item 5) is split out as #951. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 20:11
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.
Part of #902 (item 6: the plumbing removed by declared
intervalsandtransfers).What
packages/store/test/plumbing/, test fixtures, not recipes): the store-booking and store-credits APIs served by trusted operator extensions throughStoreExports.transaction. They cover the overlap check, transfers with floors, the issuer membership gate,Idempotency-Keyretries, the owner and its authorization (401, cross-origin 403, another owner's record as 404), the per-owner quota,balance_not_zero,If-Matchand PUT/PATCH.packages/store/test/plumbing.test.ts): each recipe's owntests/requests.json(and seed) runs against the counterexample through the CLI, twice, and the audit reports it ready. A 10-request retry fixture (credits-retries.json) runs against both the recipe and the counterexample, because the recipe fixtures send noIdempotency-Key. Deliberately breaking the overlap check orbalance_not_zerofails the recipe fixtures.npm run measure:plumbing(scripts/docs/measure-plumbing.ts) counts non-blank, non-comment lines per file kind, plus physical lines (what [Request]: Prove an embedded upstream auth provider in one local URLCode application #843's "127 lines" counted).Caveats
Full list in FRAMEWORK.md.
functions cannot reachStoreExports.transaction, so the counterexamples are operator extensions, not function routes.ownerproperty the code enforces, and a disabled store route, because every collection needs a mount.describe; the checks scan the collection instead of using an index.Also
tests/seed.jsonfor the issuer.Evidence
npm run verifypasses locally (macOS, Node 26.10) after the merge.🤖 Generated with Claude Code