Repository navigation
Store recipes: store-approval; booking and credits on slot grids, create.members and a unique-handle directory (#956, #957) - #992
Merged
Conversation
#952, #953) editable and deletable, in the shape of a transition's from (a value or a list per readOnly property), refuse PUT/PATCH and DELETE outside the named states with 409 record_locked, under the write lock after If-Match, on HTTP, StoreExports and host transactions. Creates, transitions, increments and transfers are unaffected. Allow on a record and allow on a list are the hint. unique: [prop] keeps a bounded string property unique across every record, across owners on an owned collection, with 409 value_taken through a partial expression index; activation refuses stored duplicates. Documented as an existence oracle: public handles only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…enerate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ids, create.members and a unique-handle directory (#956, #957) - store-booking: intervals length/step (PT1H) replace the hour pattern, and create: {members: staff} makes booking staff-only; seeded from tests/seed.json. - store-credits: a unique lower-case handle and a projected readers directory (/api/directory, properties: [handle]) so pay-by-lookup cannot be spoofed; the issuer pattern and #935 transfer rules are unchanged. - store-approval (new, YAML only): owner submit/withdraw, by: others approve/reject for a reviewers list stamping reviewedBy/reviewedAt, editable/deletable lock decided requests, a reviewers queue with showOwner. - plan-feature ranks store-approval for approval goals; booking and credits stay excluded. recipes search approval finds it. - READMEs drop the stale scratch-database advice and say plainly the fixtures need the stand-in bearer principal, and how to rewrite them as sign-in steps. - The plumbing counterexamples follow the recipes; FRAMEWORK.md re-measured. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 22:42
…e references Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
…irectory (Windows EBUSY) (#999) t.after hooks run in registration order, and directory() registered the rm before connect() registered the close, so on Windows the rm hit EBUSY on lease.sqlite and retried until the test timed out (seen on PR #992's Windows shard). 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 #956
Fixes #957
Builds on #984 (store
editable/deletableandunique), which has since merged; this branch mergesorigin/main.What changed
intervals.length/step(PT1H) replace the hourpattern, so a 12-hour booking or a 10:30 start is422;create: {members: staff}makes booking staff-only (403 membership_requiredfor a non-member). Staff come fromtests/seed.json.handlewithunique: [handle](409 value_taken) and a projected readers mountreaders: {directory: {mount: /api/directory, properties: [handle]}}; the fixtures look the recipient up and pay the id they get back. The issuer pattern and the Store: a transfers collection's sum never changes on delete or create (#928) #935 transfer rules are unchanged. There are now 2 routes.submit/withdraw;approve/rejectasby: otherstransitions gated bymembers: reviewersthat stampreviewedBy/reviewedAt;editable: {status: draft}anddeletable: {status: [draft, rejected]}lock decided requests (409 record_locked); a reviewers queue at/api/reviewwithshowOwner: true.recipes search approvalfinds store-approval.plan-featureranks it first for approval goals, and booking and credits stay excluded (test/feature-plan.test.ts updated from fix(core): plan-feature offers booking and credits recipes only on their own terms (#957) #981).stepswithauth.usersintests/seed.json.packages/store/test/plumbing/follow the recipes. The booking one gets a one-hour check and creates as the caller under the declared create gate. The credits one gets handle,uniqueand a hand-written directory. FRAMEWORK.md has the re-measured table: booking 50 / 0 against 49 / 139, credits 51 / 0 against 50 / 186.Evidence
packages/store/test/recipes.test.tsruns all three recipes through the CLI with--local-reviewand hermetic seeds: validate, test twice, and auditreadywith each recipe's own route count.plumbing.test.tsruns the recipe fixtures against the counterexamples.npm run verifyandnpm run test:packagepass locally (macOS). Package budgets were unchanged and within the policy.Limitations
steps. The READMEs say this and show how to convert them. No fixture was run against the real auth extension.🤖 Generated with Claude Code