Repository navigation
fix(id): unmask MissingBlob in verify_import and repair hosted_export fixtures (#13444) - #13528
Merged
Merged
Conversation
… 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).
|
Warning Review limit reachedYou'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. View limit details
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. |
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. |
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.
Fixes #13444 — the 4
hosted_exporttests failing on main since e7888eb (#13289 citation binding).Root cause — both sides, one defect each:
verify_importcompared declaredblob_refsagainst citation-resolved refs before checking carriage, so an object whose references name a blob the export does not carry at all was refused asBlobCitationMismatchinstead ofMissingBlob(missing_blob_is_refused). A declared reference naming no carried blob is now the plainMissingBlobrefusal, 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.document.putenvelopes 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 developin 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).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.