Repository navigation
id-worlds: program gallery registry core (records, publish, list, fetch, unpublish) - #11500
Merged
Merged
Conversation
…ch, unpublish) A transport-free Registry of verified program bundles keyed by content hash (#8281, design D6). Publish verifies the bundle (protocol), applies the operator's AdmissionPolicy (policy), and refuses a second content hash for an already published (author, name, version) as a provenance violation. List returns signed BundleRecords a client can verify without the payload; fetch returns the bundle bytes; an author-signed unpublish withdraws content for good, while an operator remove only delists it. A directory-backed store reloads and re-verifies on open. provenance_conflicts lets clients spot conflicting claims across registries. Refs #8281 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Before: a program bundle could be exported, forked and sideloaded into a world, but there was nowhere to publish it and no way for a client to list or fetch other people's programs.
After:
id-worldshas a transport-free program registry. Authors publish verified bundles, clients list signed records and fetch bundles by content hash, and authors can withdraw their own content. Any registry, including ours, can be checked by clients rather than trusted.This is the registry core for the program gallery (#8281, design D6: "the gallery is a registry, and registries are plural"). The iroh transport and pkarr discovery are later slices, so this refs #8281 rather than closing it.
How:
program_bundle.rs: newBundleRecord {manifest, bundle_signature}withverify()(checks the manifest and the author's bundle signature without the payload) anddescribes(bundle);ProgramBundle::record().program_registry.rs(new):Registrywithpublish,list(ListQuery),fetch, author-signedunpublish(sign_unpublish, domaindeveloping-today/id-program-registry-unpublish/v1\0), operatorremove, andopen_dirfor a self-hosted store that re-verifies every file on load.ProgramBundle::decodeis refused asinvalid_bundle.AdmissionPolicywithAdmitAllandAdmitAuthors.provenance_violation; republishing identical bytes is idempotent.provenance_conflicts(records)finds same-version, different-hash claims across records gathered from many registries, ignoring records that don't verify.Testing:
cargo test -p id-worlds --lib -- program_bundle program_registry(25 pass, 9 new registry tests plus one record test). Clippy shows only the crate's existingmap_errwildcard pattern on the new lines.Refs #8281
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.