Skip to content

fix(id): unmask MissingBlob in verify_import and repair hosted_export fixtures (#13444) - #13528

Merged
dezren39 merged 1 commit into
mainfrom
lane-ob5-13444
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-ob5-13444

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #13444 — the 4 hosted_export tests failing on main since e7888eb (#13289 citation binding).

Root cause — both sides, one defect each:

  1. Production (error precedence). verify_import compared declared blob_refs against citation-resolved refs before checking carriage, so an object whose references name a blob the export does not carry at all was refused as BlobCitationMismatch instead of MissingBlob (missing_blob_is_refused). A declared reference naming no carried blob is now the plain MissingBlob refusal, checked before citation binding. The id: verify export blob refs against each envelope's actual content citations #13289 regression tests (decoy, missing cited blob, extra reference) keep their verdicts — no verification weakened.
  2. Test fixtures (honest exports). Three tests built exports no honest producer emits under the binding semantics: document.put envelopes citing content the carried blobs did not contain (delayed_rebind_history_round_trip, export_is_canonical_and_survives_the_wire), or citing content the export did not carry at all (fast_path_history_verifies_without_backing_records, whose subject is step-2 history). The fixtures now carry exactly the cited content, or cite nothing.

Verification (laptop, nix develop in pkgs/id, cargo test --all-features --lib): reproduced the 4 failures on pristine main first (25 passed / 4 failed in the module, identical error sites to the issue); after the fix the full lib run is green — 253 + 756 + 561 passed, 0 failed — including all four named tests and the three #13289 binding tests. rustfmt drift on the file is unchanged from main (8 pre-existing lines, none in the changed hunks).


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

… fixtures (#13444)

Two defects from e7888eb (#13289 citation binding):

1. Production: verify_import compared declared blob_refs against
   citation-resolved refs before checking whether a cited blob was
   carried at all, so an object whose references name a blob the
   export does not carry was refused as BlobCitationMismatch
   instead of MissingBlob. A declared reference naming no carried
   blob is now the plain MissingBlob refusal, checked before
   citation binding. The #13289 regression tests (decoy, missing
   cited blob, extra reference) keep their verdicts.

2. Tests: three honest-export fixtures built exports no honest
   producer emits under the binding semantics — document.put
   envelopes citing content the carried blobs did not contain, or
   citing content the export did not carry at all. The fixtures
   now carry exactly the cited content (delayed-rebind and
   canonical/wire tests) or cite nothing (fast-path history test,
   which exercises step-2 history only).

cargo test --all-features --lib in pkgs/id: 253 + 756 + 561
passed, 0 failed (previously 4 hosted_export failures).
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: f2ef53c5-9020-4c36-88b3-2897726c4b49
Commits

Reviewing files that changed from the base of the PR and between 8052587 and 4b62248.

Files selected for processing: 1

  • pkgs/id/src/hosted_export.rs
  • 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 c664a2f into main Nov 23, 2026
2 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T17:47:15.521613Z 4b62248 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.

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.

id: 4 hosted_export tests fail on main (BlobCitationMismatch/MissingBlob)

1 participant