Provide passive per-source resource contexts
This commit is contained in:
@@ -425,6 +425,18 @@ configuration, metadata, and safe rendering agree. Run the everyday checker and
|
||||
|
||||
## Stage 8: Add handle-free source-context queries
|
||||
|
||||
**Completed 2026-09-29.** Results and active resolution callbacks now expose
|
||||
passive per-source `ResourceContext` records. Native views borrow caller-owned
|
||||
filesystems under their configured roots; host views retain only canonical root
|
||||
paths and open/close fresh roots with each resource file. Main, imported,
|
||||
selected-overlay, and explicitly contextual synthetic sources have their own
|
||||
base directories; contextless and CLI sources do not. Public tests verify
|
||||
origin-based resource access, no I/O on queries, later mutation/deletion,
|
||||
borrowed-filesystem closure, and callback guards. Tracking tests cover resource
|
||||
Open failure cleanup, returned file/directory ownership, and loading-handle
|
||||
closure across success and representative failures. The everyday checker and
|
||||
full race suite passed.
|
||||
|
||||
1. Retain context descriptors keyed by acquired source ID, including imported
|
||||
sources, in private inspection and live resolution state. Keep descriptors
|
||||
separate from serializable metadata and preserve callback guards.
|
||||
|
||||
Reference in New Issue
Block a user