Repository navigation
Store operator gaps: audited record moves, --actor, bounded filters, declared targets in explain/manifest/context/review (#875) - #885
Merged
Conversation
…lters, descriptor targets in explain/manifest/context/review (#875) - reassign records store.record.reassigned per moved record on audit: true owned collections ({collection, from, to}); ownerless-assign/-delete record reassigned/deleted events. Events are counted first and the whole command is refused with 503 audit_backlog (dry runs too) before writing when they would pass the outbox backlog. The reassign report adds auditEvents. - --actor <principal id> on every writing operator command (default operator); operator-asserted, not authenticated. - Breaking: ownerless-assign/-delete need --project and an ownership: owner collection; assignOwnerless/deleteOwnerless take an options object. - Breaking: a filter value outside minimum/maximum, minLength/maxLength or format is 400 invalid_query (write-path message, value never echoed). - explain, manifest, context and review use installed descriptors' declared targets without a host file; manifest targets add refused (schema 4); review --target marks refusedOn. - Core unpacked budget 3584 KiB (measured 3664264 bytes). Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 01:37
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 #875 items 1, 2, 4 and 5. Item 3's options are on the issue.
reassignwritesstore.record.reassigned({collection, from, to}) for each moved record in audited owned collections, in the same transaction as the moves.503 audit_backlog, writing nothing, when the waiting events plus the planned ones would exceed 1000 (dry runs too). So one command changes at most 1000 records of an audited collection.ownerless-assignandownerless-deleteare audited too.--projectand anownership: ownercollection.--actor <id>. Accepted on the store operator commands that write, validated as a principal id, defaultoperator. Documented as operator-asserted, not authenticated.explain,manifest,contextandreviewnow use the installed descriptors' declaredtargets, likevalidateandcapabilities.refusedcount.review --targetfindings carryrefusedOn.minimum/maximum,minLength/maxLengthorformatare400 invalid_queryon owner and readers mounts. The value is never echoed.Evidence (macOS, Node 26)
npm run verifypasses (root 1151, store 138).test:proof12.test:packagepasses.audit:packagespassed after the core unpacked budget was raised to 3584 KiB (measured 3,664,264 bytes).operator-audit.test.ts:--actorvalidation and scope;test/capabilities.test.tscoverexplain,manifest,contextandreview.🤖 Generated with Claude Code