Repository navigation
Store: members CLI, audited membership, reassign memberships, enum filters; declared targets in validate/capabilities (#866, #867) - #876
Merged
Conversation
…ips, enum filters, declared targets in validate (#866, #867) - urlcode-store members add|remove|list, beside the live server. - Membership collections may declare audit: true; every grant and revocation (CLI, library, StoreExports, reassign) writes its event in the same transaction. Changing a membership key is refused. - reassign moves membership entries with the records it moves. - A filter value outside a field's enum is 400 invalid_query. - readers.showOwner: true exposes the owner's opaque id to members only. - urlcode validate (--target) and urlcode capabilities use installed descriptors' declared targets without a host file. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Owner The readers mount built its list answer by hand to keep _owner, which dropped the etags map #872 adds to every list response. It now goes through listView with the readers projection, and the showOwner test asserts the etags. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 00:00
This was referenced Sep 29, 2026
Closed
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 #866 and #867.
Store (#866)
urlcode-store members add|remove|list --database --project --collection [--principal]prints JSON and is safe beside the running server.--projectis required, because the declared collection (key field, audit, limits) comes from it, as it does forreassign.membership: truecollection may declareaudit: true.store.membership.addedorstore.membership.removedin the same transaction as the change. That covers the CLI, the library functions,StoreExportsandreassign.operator.reassignmoves membership entries with the records. If the target is already a member, the source entry is deleted. The report addsmemberships.enumis400 invalid_queryon owner and readers mounts. Breaking: it used to return an empty page.readers.showOwner: trueadds the owner's opaque principal id as_owneron the readers mount only. It is hidden everywhere else. The privacy trade-off is documented in the store's SECURITY.md.Core (#867)
urlcode validate --target <t>(defaultself-hosted), run without--host-file, refuses an extension whose installed descriptor doesn't declare that target.urlcode capabilitiesanswers the extension rows from the installed descriptors, falling back to the release catalog.Fix found during rebase
My first
showOwnerimplementation built the readers list response by hand and dropped #872's per-recordetags. It now goes throughlistView, and a test assertsetagson readers lists withshowOwner.Evidence (macOS, Node 26)
npm run verifypasses on the branch rebased onto main (after Pointed body schema diagnostics for contradictory schemas and Ajv refusals (#861) #871–workerd parity: build first, raw GET/HEAD-with-body checks, dispatch-only workflow (#868) #874). Root and every workspace pass (store 130+), as dotest:addonsandtest:proof.npm run test:packagepasses.showOwnerscopecapabilities, including an installed descriptor overriding the catalogRemaining gaps are in #875.
🤖 Generated with Claude Code