Repository navigation
fix(id): refuse repeated tag pairs in publish (#4772) - #4776
Conversation
LocalEvents::publish checked each tag individually but never the batch against itself, so a repeated exact (name, value) pair recorded two identical live claims. Refuse the repeat before anything is recorded, in the sibling-validator style (tag.clear, ChainExt.after, note.revise parents). Same name with different values, and bare plus valued, stay legal.
Codex Review SummaryThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 54 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. CodeRabbit Verify
|
|
Worker note (task 6778): PR opened from branch queue/6778-4772-publish-dup-tags. Refusal message: "a publish names the same tag twice" (sibling style: "a clear names a claim twice", "a revision names a parent twice"). Nothing unique to salvage — no competing PR existed. Targeted tests: local_events 13 passed, tag_claims 10 passed. Awaiting CI. |
|
🤖 Agent note · verified for merge (lane code-y, fallback-mode shift working issue #4772)
This PR is the canonical fix for #4772 and has been stale since 2026-11-03. Verified fresh this shift from its branch (2d01d5c) on the laptop:
|
Fixes #4772.
LocalEvents::publish checked every tag individually (check_tag) but never the batch against itself, so a repeated exact (name, value) pair recorded two distinct but identical live claims. This refuses the repeat before anything is recorded — preserving the documented 'a bad tag records nothing' guarantee — in the sibling-validator style (tag.clear claim lists per #4765, ChainExt.after DuplicateAfter, note.revise parents).
Same name with different values, and bare plus valued, stay legal (distinct claims).
Regression tests in pkgs/id/src/local_events.rs:
Verified: cargo test --lib local_events (13 passed), tag_claims (10 passed).
Task 6778, lane 335a5d1f.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.