refactor(storage): own structured mutation commit effects - #2194
Merged
Jurij89 merged 3 commits intoAug 9, 2026
Merged
Conversation
9 tasks
9 tasks
otReviewAgent
left a comment
There was a problem hiding this comment.
Review Agent completed this review and found no issues.
Jurij89
added a commit
that referenced
this pull request
Aug 9, 2026
* fix(storage): close leased raw SPARQL mutations * test(storage): prove leased staging cleanup remains open * test(storage): inventory all first-party store consumers * fix(storage): preserve legal leased SPARQL reads * refactor(core): centralize read-only SPARQL admission * fix(storage): make leased capabilities truthful * fix(storage): preserve escaped prefixed reads * fix(storage): catch untyped raw store aliases * refactor(storage): own structured mutation commit effects (#2194) * refactor(storage): own structured mutation effects * refactor(storage): keep mutation effects pure * refactor(storage): model mutation no-ops explicitly --------- Co-authored-by: Jurij Skornik <jurij.skornik@gmail.com> --------- Co-authored-by: Jurij Skornik <jurij.skornik@gmail.com>
This was referenced Aug 9, 2026
Jurij89
added a commit
that referenced
this pull request
Aug 9, 2026
15 tasks
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.
Summary
structuredMutationcapability and public helper exports intact; this adds no callback runner, capability protocol, wrapper layer, scheduler work, or background component.Related Work
agent-docs/plans/2026-08-09-system-record-followup-refactors.mdData Flow
sequenceDiagram participant A as Agent cache wrapper participant S as Pure Storage effect model participant B as Structured mutation backend A->>S: capture effects from mutation S-->>A: frozen scope and no-op classification A->>B: execute original mutation with original receiver/options alt commit succeeds and may mutate B-->>A: success A->>A: invalidate list and touched projections else structural no-op or failure B-->>A: no-op success or error A->>A: no cache effect endFiles Changed
packages/storage/src/bounded-structured-mutation.tspackages/storage/src/index.tspackages/agent/src/dkg-agent-base.tspackages/storage/test/bounded-structured-mutation.test.tspackages/agent/test/replace-subject-agent-wrapper.test.tsTest Plan
bounded-structured-mutation.test.ts: 19 passedreplace-subject-agent-wrapper.test.ts: 4 passedgit diff --check; generated EVM deployment output restored before commit