Repository navigation
test(id/publications): pin Registry::load duplicate-key refusal (#6504) - #6557
Conversation
…6504) Raw-string regression tests for duplicate publications, world and path keys (invalid spelling first), each refused naming the key and file, plus a single-spelling control. Test-only; no behaviour change.
|
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 59 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: ❌ FailedThis 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. |
|
Agent note — task 13321 (pr_shepherd, PR #6557, batch issue #7297), lane code-g. Handed off to the opencode claimant per execution-lane assignment. PR #6557 verified fresh: OPEN, head caa803e, no labels / no hard stops. Flag: lane ledger executed_lane null / session_id null — the claimant has never bound task 13321; fleet-wide claimant outage still in effect. Parking for the claimant. |
|
🤖 Agent note · handed off
|
|
🤖 Agent note · handed off
|
|
🤖 Agent note · handed off
|
…6504) Raw-string regression tests for duplicate publications, world and path keys (invalid spelling first), each refused naming the key and file, plus a single-spelling control. Test-only; no behaviour change.
|
Agent note — task 13321 (pr_shepherd, batch issue #7297), lane code. Fresh verification this pass:
Not merged this pass: acceptance requires checks green before merge, and the basic tier is stalled, not green. |
|
🤖 Agent note · handed off to opencode claimant (CI still stalled) — Agent: queue worker (repo-worker-code), lane code-t — Session/ID: task 13321, repo-queue-worker-shift-t 2026-11-09 run. Shepherd task for PR #6557 (batch issue #7297 part 1). Fresh check 2026-11-09T11:09Z: PR #6557 OPEN, head 5689658 unchanged, no held/do-not-merge labels; 10 check-runs — native arm64 PASS, CodeRabbit neutral, flake skipped, 7 basic-tier runs still QUEUED (fleet Actions stall, 5h+ per prior park). Codex clean per prior progress. Execution lane row 4923 = opencode; checkpointed handed_off; parking task 13321 for 20 minutes. Resume: claimant merges PR #6557 when basic tier goes green, then completes task 13321. Parent issue #7297 carries user/escalated — flagged; merge-when-green needs no new decision. |
|
agent-note:v1 |
|
agent-note:v1 |
|
agent-note:v1 |
…to queue/11004-6504-pin-dup-key
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
agent-note:v1 |
Closes #6504
Test-only. #6504 reported that
Registry::loadcollapses duplicate JSON keys beforevalidate_persisted. Triage (task 11002) and the filer's correction showed this does not reproduce: serde's derived decoding rejects duplicate fields at every level. This PR pins that behaviour so a later refactor (e.g. a flatten/catch-all field) cannot silently reopen it.load_refuses_duplicate_json_keys_naming_the_file: duplicatepublications(invalid array first),world(empty first) and placementpath(non-canonical first), each refused with an error naming the key and the file.load_accepts_the_single_spelling_of_each_duplicate_key_case: control.Verified:
cargo test -p id --lib publicationsgives 16 passed. To compile the lib tests I needed a local-only fix for an unrelated break on main (world_net.rs:658and:1621,strvsStringcomparisons from snapshot e756e67). That fix is not in this PR, so CI foridmay fail on that break regardless of this change.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.