Skip to content

fix(id-core): reconcile complete holder snapshots - #10903

Merged
dezren39 merged 2 commits into
mainfrom
sweep/10889-holder-snapshot
Nov 17, 2026
Merged

dezren39 merged 2 commits into
mainfrom
sweep/10889-holder-snapshot

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Problem

Complete holder announcements refreshed listed hashes but left omitted hashes attributed to the endpoint until stale expiry, so provider lookup could return peers that no longer held the content. Truncated announcements also need to preserve omitted rows because they are only prefixes.

Solution

Treat non-truncated announcements as atomic replacement snapshots for the given world and endpoint. Remove that endpoint's omitted rows, then insert the announced hashes under the same write lock. Truncated announcements continue to merge without removal. Add tests for complete replacement, truncated retention, empty snapshots, and endpoint/world isolation.

Fixes #10889

Verification

  • cargo test -p id-core holders::tests (9 passed)
  • cargo fmt -p id-core -- --check
  • git diff --check

repo-worker-tmp-code-b added 2 commits November 16, 2026 20:10
Treat non-truncated holder announcements as complete snapshots for their world and endpoint, removing omitted hashes atomically while preserving truncated prefixes and other holders. Add coverage for replacement, truncation, empty snapshots, endpoint isolation, and world isolation. Fixes #10889.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 02:10
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T02:10:58.749612Z
We couldn’t complete this review. Comment @codex review to try again.
ff56e07 PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 17, 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

@dezren39
dezren39 merged commit 7dc679b into main Nov 17, 2026
1 check failed
@dezren39
dezren39 deleted the sweep/10889-holder-snapshot branch November 17, 2026 02:11
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.

fix(id-core): reconcile full holder announcements with prior holdings

1 participant