GeezerVison is showing github.com — id(world): parse_records refuses duplicate JSON keys (#6473) by dezren39 · Pull Request #6561 · developing-today/code
Conversation
dezren39
commented
Nov 6, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #6473 — Phase 1 of #6520.
What
Tests (oracle: the written document)
- New
world::tests::records_refuse_duplicate_keys: top-level, nested, and in-array duplicates refused with the key named; oversized value hidden behind a small duplicate refused; 4097 raw entries collapsing to 4096 distinct keys refused; distinct-key input parses identically.
- New
id_core::json_unique unit tests for the promoted helper (distinct keys parse as before; duplicates refused at every depth).
- Existing
record_keys_and_sizes_are_bounded and the world_session duplicate-key tests exercise the same seams.
Queue: task 11202 (repo-health-code-pilot).
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
Promote parse_json_without_duplicate_keys from world_session into a
shared id-core module (json_unique) per design #6520, and route
world::parse_records through it so MAX_RECORDS and
MAX_RECORD_VALUE_BYTES are checked against the document as written,
not a last-wins collapse. Regression tests pin the top-level, nested,
in-array, oversized-hidden-value, and count-collapse shapes.
Task 11202 (repo-health-code-pilot).
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 11 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:
35a0566b-b00b-460b-9526-016cd5583a4f
Commits
-
Reviewing files that changed from the base of the PR and between d54934a and 18ccc46.
Files selected for processing: 5
-
pkgs/id/crates/id-core/src/json_unique.rs
pkgs/id/crates/id-core/src/lib.rs
pkgs/id/src/world/mod.rs
pkgs/id/src/world/tests.rs
pkgs/id/src/world_session/mod.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-06T16:32:33.937639Z |
18ccc46 |
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
🤖 Agent note · verification status (task 11202, lane code-a)
cargo test -p id-core json_unique on the laptop: pass (2/2, including duplicate-refusal at every depth).
cargo test -p id --lib records on the laptop: cannot build — pre-existing failure on clean main, proven by stashing this branch's changes and re-running: cargo check -p id --tests and cargo check -p id at base 9c06d0c8a4 fail with the same two E0277 errors in src/world_net.rs:658 and src/world_net.rs:1621 (str vs String comparisons in RecordsBudget::validate_record and the records-cursor check). Neither error is in this PR's files; this PR's code type-checks (no other errors emitted). The world records tests in this PR therefore await CI / a fix for the pre-existing world_net build break, which is out of this task's scope.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 6, 2026
|
Update: the pre-existing world_net.rs E0277 build break described above is now tracked as issue #6567 (filed this shift, with clean-main reproduction evidence).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 9, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|