Skip to content

id: adapt id-store and id-worlds to iroh-blobs 0.105 / redb 5 (checkpoint) - #14325

Open
dezren39 wants to merge 1 commit into
mainfrom
oc-code-04/14315-idstore-checkpoint
Open

dezren39 wants to merge 1 commit into
mainfrom
oc-code-04/14315-idstore-checkpoint

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Checkpoint for #14315. Adapts id-store and id-worlds to the bumped APIs: iroh-blobs 0.103 hashes used by iroh-docs 0.101 are converted byte-wise, and the redb 5 range call is updated. cargo check -p id-store passes.

Not closing #14315: id-cli still fails to build. It needs iroh-gossip 0.103 root re-exports and ALPN, the topic split replacement, and a decision on which blob store backs iroh-docs 0.101 (it requires a 0.103 Store, while the node holds a 0.105 one).

Refs #14315

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T11:48:54Z",
    "session_id": "ses_e5df2d65fa5ffeYKmpOzOgB6F4",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/oc-code-04-14315-idstore",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/oc-code-04-14315-idstore",
      "repo": "developing-today/code",
      "branch": "oc-code-04/14315-idstore-checkpoint",
      "sha": "c15c98959ce52ce21c1f61fca3228a1ac7371055"
    },
    "auth_subject": "oc-code-04",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

Summary by CodeRabbit

  • Bug Fixes
    • Improved consistency when handling content hashes for tags and world records, helping stored content be recognized correctly when saved, retrieved, or synchronized.
    • No changes to user-facing workflows or capabilities.

Bridge iroh-blobs 0.103 hashes used by iroh-docs 0.101 byte-wise, and drop
the redb 5 range turbofish. id-cli still needs the iroh-gossip 0.103 and
blob-store adaptation; that remains open on #14315.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes update redb API usage and add conversions between iroh-docs content hashes and iroh-blobs hash values in id-store and id-worlds.

Changes: redb compatibility

Layer / File(s) Summary
Update redb API usage
pkgs/id/crates/id-events/src/event_store/author_events.rs, pkgs/id/crates/id-events/src/event_store/validity.rs, pkgs/id/crates/id-store/src/graph_index.rs
The event-store modules import ReadableTable. GraphIndex::scan uses inferred range bounds while retaining its existing bounds.

iroh hash compatibility

Layer / File(s) Summary
Convert hashes in id-store
pkgs/id/crates/id-store/Cargo.toml, pkgs/id/crates/id-store/src/tags.rs
id-store adds an iroh-blobs dependency alias and converts hashes when writing and decoding tag entries.
Convert hashes in world records
pkgs/id/crates/id-worlds/Cargo.toml, pkgs/id/crates/id-worlds/src/world_records.rs
id-worlds adds an iroh-blobs dependency alias and converts content hashes for reconciliation, record reads, and blob checks during replication.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

  • Issue 14315 reports that id-store does not compile after dependency upgrades. This PR updates the redb range call and iroh-blobs hash conversions described in the issue, but the provided context says id-cli still fails.

Suggested reviewers: claude

Merge Risk: Minimal · up to c15c9 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: adapting id-store and id-worlds to the iroh-blobs 0.105 and redb 5 API changes. The raw summary shows the changes match that scope: a redb ReadableTable import, a rang…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: adapting id-store and id-worlds to the iroh-blobs 0.105 and redb 5 API changes. The raw summary shows the changes match that scope: a redb ReadableTable import, a range call update, an aliased iroh-blobs 0.103.1 dependency for iroh-docs hash conversion, and hash conversion in tags.rs and world_records.rs. The title says 'iroh-blobs 0.105', but the summary shows the aliased dependency at 0.103.1, which the objectives explain as the version iroh-docs needs. The '(checkpoint)' label is accurate because the PR description says id-cli still fails and related work remains. The title is specific and concise, and it is a fair description of the primary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 53f554fc-3f78-420e-8175-16d334fb825d
Commits

Reviewing files that changed from the base of the PR and between 33271cd and c15c989.

Files ignored due to path filters: 1

  • pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 7

  • pkgs/id/crates/id-events/src/event_store/author_events.rs
  • pkgs/id/crates/id-events/src/event_store/validity.rs
  • pkgs/id/crates/id-store/Cargo.toml
  • pkgs/id/crates/id-store/src/graph_index.rs
  • pkgs/id/crates/id-store/src/tags.rs
  • pkgs/id/crates/id-worlds/Cargo.toml
  • pkgs/id/crates/id-worlds/src/world_records.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

This branch has not been deployed

No deployments
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