feat(registry): expose atomic provenanced snapshot state - #602
Merged
Conversation
skhaz
approved these changes
Aug 26, 2026
wolfy-j
force-pushed
the
fix/snapshot-provenance-read
branch
from
August 26, 2026 17:20
dd46430 to
be22cba
Compare
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.
Why
Registry ownership is registry state, not author-controlled entry metadata. A consumer that combines an entry scan with repeated live provenance lookups can cross registry versions during install, update, rollback, or dynamic uninstall.
What
ProvenancedSnapshotReadercapability for atomic current and historical state reads; the system registry implements it for every storage/history driver.snapshot:state()returning detached{ entries, provenance }values captured at one registry version.registry.getauthorization boundary.registry.find()metadata-only; it does not combine finder output with a separate live provenance read.EntryProvenanceandProvenancedStatevocabulary.meta.modulefallback, covering install, update, rollback, forward apply, root preservation, and uninstall.No storage schema, entry payload, Hub, dependency, or metadata format changes.
Verification
go test -race -count=1 ./api/registry ./runtime/lua/modules/registry ./system/registry/...golangci-linton the registry API, system, and Lua packages