security(storage): close leased raw SPARQL mutation routes - #2187
Merged
Jurij89 merged 9 commits intoAug 9, 2026
Merged
Conversation
Jurij89
force-pushed
the
fix/2162-close-leased-raw-mutations
branch
from
August 9, 2026 10:24
70ae48d to
88a4658
Compare
Jurij89
changed the base branch from
feat/2162-bounded-managed-capabilities
to
fix/2162-structured-managed-updates
August 9, 2026 10:25
16 tasks
Jurij89
force-pushed
the
fix/2162-close-leased-raw-mutations
branch
from
August 9, 2026 10:39
88a4658 to
f346cd0
Compare
Jurij89
force-pushed
the
fix/2162-structured-managed-updates
branch
from
August 9, 2026 11:04
c46918e to
f605118
Compare
Jurij89
force-pushed
the
fix/2162-close-leased-raw-mutations
branch
from
August 9, 2026 11:06
da526d2 to
04239a8
Compare
added 8 commits
August 9, 2026 13:22
Jurij89
force-pushed
the
fix/2162-close-leased-raw-mutations
branch
from
August 9, 2026 11:24
04239a8 to
6534a71
Compare
This was referenced Aug 9, 2026
This was referenced Aug 9, 2026
* 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>
This was referenced Aug 9, 2026
Jurij89
added a commit
that referenced
this pull request
Aug 9, 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.
Summary
update()is categorically unavailable, whilequery()accepts only canonically recognized read-only programs.managedByDkg, oratomicUpdates; capability probes now truthfully report leased raw updates unavailable while bounded structured mutations remain available.PN_LOCAL_ESCpunctuation around update-word text so valid escaped prefixed-name reads remain available, and trigger the raw-channel gate for every derived storage consumer package.Related
Diagrams
Ownership-leased raw SPARQL boundary
sequenceDiagram participant C as Caller participant D as Store decorators participant A as SparqlHttpStore participant S as Priority scheduler participant O as Managed Oxigraph C->>D: update or query with mutation syntax D->>A: Forward raw SPARQL A-->>C: Typed refusal and capability unavailable Note over A,S: Refusal occurs before admission or I/O C->>D: query with recognized read-only form D->>A: Forward read SPARQL A->>S: Admit read work S->>O: Send read query O-->>C: Query resultFiles changed
packages/core/src/sparql-operation.tspackages/query/src/sparql-utils.tspackages/storage/src/adapters/sparql-http.tspackages/storage/test/reserved-internal-graph-mutation-guard.test.tspackages/storage/test/system-record-managed-mutation-admission-v1.test.tspackages/query/test/query-engine.test.tsscripts/check-managed-store-raw-channels.mjsTripleStorecalls, and fail on raw updates, static mutations, package-scope drift, or changes to the reviewed dynamic-query baseline without depending on generated core output.package.jsontsx.devnet/issue-2052-managed-ownership/run.tsdevnet/issue-2052-managed-ownership/model.ts.github/workflows/system-record-managed-ownership.ymlTest plan
pnpm check:managed-store-raw-channels: 288 typed calls across all five storage consumers; 287 reviewed dynamic call sites; zero violations; embedded fixtures coverany/unknown, variable, property, and destructured aliasespnpm typecheck:live:system-record-managed-ownershipnode scripts/sparql-scale-lint.mjs --diff 2c7f33ca375a6f96994dbb9c31a5b682b5d69363 HEAD: zero new blocking findings