Repository navigation
feat(blob): add service URI policy and External cache hooks - #10989
Merged
Merged
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
No merge-blocking issues found. The opt-in policy and External cache view cover the intended library boundary. Service adoption still requires preserving the policy when rebuilding Sessions and implementing wrap_external_blob in immutable cache wrappers.
BubbleCal
approved these changes
Nov 12, 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.
Controlled services need to reject stored External Blob references outside registered storage bases before URI resolution or size probing, while immutable payload caches must not return stale External data.
Add an opt-in Session policy for unregistered External reads and logical reference writes. Embedded sessions retain the existing Allow default. Provider filtering removes selected schemes and clears cached bindings; it does not revoke previously issued handles. Policy-aware writes report that remote tables require registered storage bases. Explicit Ingest and low-level file APIs retain their existing contracts.
Add an External-store wrapper hook that derives a view from the resolved store, preserving credentials, endpoints, connection pools and provider state. Immutable cache wrappers can bypass their cache for External reads while retaining ordinary Managed behavior. A weak cache reuses live External views without a reference cycle, and source/scheduler identity prevents stores or wrapper views with matching prefixes from being combined.
Behavioral validation covers rejection before source access, filtered local providers, registered-base matching, repeated locator batches sharing one executor, fresh External reads after overwrite, and zero origin reads for warm Managed payloads. The final reviewed delta passed 483 IO and 227 Blob tests; earlier 189 Dataset IO cases and two doctests remain applicable. The integrated tree adds only the upstream SAFETY-comment fix from #10980; full root Clippy passed on the integrated PR head (
cargo clippy --all --tests --benches --profile ci -j 4 -- -D warnings, exit 0). Hosted CI and formal maintainer approval passed before merge.Service adoption must propagate the policy when rebuilding Sessions and implement the External hook in its immutable cache wrapper. Production RAM/NVMe, cloud credentials and REST/SQL integration are separate downstream work. This PR does not establish that those service boundaries are already enforced. It overlaps the internal read keys in #10171; a separately reviewed integration candidate with that PR retained Arc-instance-plus-path scheduler identity and row-independent entries and passed 605 Blob tests (0 failures). This does not claim downstream Sophon adoption or a merged prerequisite.