Skip to content

Keep scoped bundle registry views out of shared persistence - #409

Merged
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
fix/scoped-source-isolation
Sep 22, 2026
Merged

Brian Krabach (bkrabach) merged 1 commit into
mainfrom
fix/scoped-source-isolation

Conversation

@bkrabach

Copy link
Copy Markdown
Collaborator

Session-local bundle aliases can leak to later sessions because ordinary loads and include tracking persist the registry. Add an opt-in BundleRegistry(persist=False) view: it reads shared registrations and uses the normal source cache, but all registration, source identity, relationship and stale-path changes remain in that instance, including explicit save() calls. The default persistent registry API is unchanged.

Validation: 80 registry/source-binding tests pass, including sequential and concurrent scoped views, exact URI aliases, transitive self namespaces, failure isolation, stale-path cleanup, explicit global registration/update, and byte-identical baseline registry state. No model calls, production registry edits, or host restarts were used.

Unified will use this capability for session preparation in a companion PR. This is generic registry infrastructure and contains no bundle-specific policy.

@bkrabach
Brian Krabach (bkrabach) marked this pull request as ready for review September 22, 2026 11:22
@bkrabach
Brian Krabach (bkrabach) merged commit f025dbf into main Sep 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant