Skip to content

id-worlds: program gallery registry core (records, publish, list, fetch, unpublish) - #11500

Merged
dezren39 merged 1 commit into
mainfrom
claude/id-program-registry-8281
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/id-program-registry-8281

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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-worlds has 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: new BundleRecord {manifest, bundle_signature} with verify() (checks the manifest and the author's bundle signature without the payload) and describes(bundle); ProgramBundle::record().
  • program_registry.rs (new): Registry with publish, list(ListQuery), fetch, author-signed unpublish (sign_unpublish, domain developing-today/id-program-registry-unpublish/v1\0), operator remove, and open_dir for a self-hosted store that re-verifies every file on load.
    • Validity is protocol: anything that fails ProgramBundle::decode is refused as invalid_bundle.
    • Admission is policy: AdmissionPolicy with AdmitAll and AdmitAuthors.
    • A second content hash for a published (author, name, version) is a provenance_violation; republishing identical bytes is idempotent.
    • An unpublished hash is withdrawn for good there; an operator removal is not.
  • 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 existing map_err wildcard pattern on the new lines.

Refs #8281


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…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>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 06:02
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 06:02
@dezren39
dezren39 merged commit 86cd11f into main Nov 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T06:03:45.726461Z a5a40f4 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 deleted the claude/id-program-registry-8281 branch November 18, 2026 06:02
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

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.

2 participants