Repository navigation
id-sync: B07 first-class conflict reports before any resolution - #11947
Merged
Merged
Conversation
ConflictStore admits versions through the B32 gate, keeps each object's version DAG and heads, and on divergence persists an addressable ConflictReport (versions, bound signers, sources, body digests, common base, scopes, policy digest, retention expiry) before anything else. A version joining heads must name the open report; reports are immutable and superseded or resolved by later events. Conflicts on one object never affect another. Refs #10248 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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. |
|
Caution Review failedThe pull request is closed.
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. |
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.
Before: sync had no conflict artifact. Nothing recorded two signed versions of the same object diverging, so nothing stopped a merge from quietly picking a winner, and there was no addressable record to review.
After: a divergence's first output is a
ConflictReport, stored under its own SHA-256 address and logged before anything else happens to that object. A merge is accepted only as a signed version that names the open report, and a conflict on one object never holds up another.How:
federation/slices/b07_conflict_report.rsaddsConflictStore. Every version goes through the B32 gate first; its signed payload carries a small header (object id, parents, optionalresolves). The store tracks each object's heads. When an object gets more than one head, the store builds a report naming the conflicting versions, the identity each key is bound to, the verifying key, ingress path and source peer, each body's digest and length, the common base, scopes, the store policy digest, and a retention expiry. A version that joins two or more heads without naming the open report is refused (ResolutionRequired), as is one naming any other report. Reports are immutable: a changed conflict gets a superseding report, and a full merge marks the reportResolved. Versions with missing parents are held and applied when the parents arrive. Retention drops only closed reports.tests/federation_b07.rs(invariant oracle, 7 tests) runs random streams across three objects against an independent reference (brute-force heads and base, expected refusals), checks every report field, checks the audit order (each resolution comes after its report), then replays each object alone into a fresh store and requires identical outcomes. Like the other slices, the module is path-included and not yet wired intolib.rs.Refs #10248
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.