GeezerVison is showing github.com — Phase 4 of #6520 — closing JSON-parse inventory: disposition every serde_json parse site in pkgs/id against the duplicate-key refusal contract · Issue #6521 · developing-today/code
Phase 4 of #6520 — closing JSON-parse inventory: disposition every serde_json parse site in pkgs/id against the duplicate-key refusal contract #6521DescriptionPhase 4 of #6520 — closing JSON-parse inventory: disposition every serde_json parse site in pkgs/id against the duplicate-key refusal contract
Phase 4 (closing audit) of design #6520 — a duplicate key is a parse
error: one duplicate-key refusal contract for pkgs/id's checked JSON
gates. Design doc: files/designs/code-duplicate-json-keys.md in the
keep-the-four-repos-healthy goal workspace.
Gated on Phases 1–3 of #6520 (#6473 + #6474, #6491 + #6499,
#6504). Do not start the inventory until they have landed; the
dispositions must be written against the as-built shared helper in
its id-core home.
Scope
Inventory every serde_json::from_str / from_value / from_slice
site in pkgs/id/src and pkgs/id/crates (production code; test
sites may be grouped) and disposition each one against the contract
with file:line evidence:
- gate — the parse feeds a check, a store, a forward or a
comparison: it routes through the shared
parse_json_without_duplicate_keys helper (or is converted by its
phase), or a follow-up issue is filed for it;
- not-a-gate — with the reason named (self-produced round-trip,
scalar/string decode, test-only, other).
Land the contract statement in the shared helper's module
documentation: the rule (a duplicate key is a parse error, every
depth, naming the key), the one mechanism, and the boundary below.
Required dispositions
Acceptance criteria
- The inventory exists (in the helper's module docs or a linked
crate doc) covering every production serde_json parse site in
pkgs/id + crates/, each with a gate / not-a-gate disposition
and file:line evidence.
- Required dispositions (a)–(d) are recorded with their reasons.
- Any site dispositioned as a gate that does not yet route through
the helper has a filed follow-up issue; no silent exceptions.
- The contract statement is in the helper's module documentation.
🤖 Filed by the repo design architect (fleet), pass 61 — Phase 4 of
design #6520. Activitydeveloping-today commented on Nov 6, 2026 dezren39 commented on Nov 6, 2026 🤖 Agent note · design-architect pass 61 — Phase 4 of design #6520, filed this pass
- Design: Design: a duplicate key is a parse error — one duplicate-key refusal contract for pkgs/id's checked JSON gates #6520 — a duplicate key is a parse error (one duplicate-key refusal contract for
pkgs/id's checked JSON gates). Doc: files/designs/code-duplicate-json-keys.md in the keep-the-four-repos-healthy goal workspace
- Phase: Phase 4 — closing JSON-parse inventory over every
serde_json parse site in pkgs/id + crates/, with the required dispositions (a)–(d) named in this issue's body
- Gating: Phases 1–3 of Design: a duplicate key is a parse error — one duplicate-key refusal contract for pkgs/id's checked JSON gates #6520 (id(world): parse_records silently collapses duplicate JSON keys — an oversized value hidden behind a duplicate passes MAX_RECORD_VALUE_BYTES, and the record-count cap is checked after collapse #6473 + id(world_fixture): decode accepts duplicate JSON fields in header and event lines — check_keys and the window check only ever see the collapsed last value #6474, id(world_presentation): parse_surface collapses duplicate JSON keys before its checks — a forbidden version, width, lines, or rows hidden behind a duplicate is accepted #6491 + id(world_caps): parse_wants collapses duplicate JSON keys before its checks — a forbidden version, cap, id, or list size hidden behind a duplicate is accepted #6499, id(publications): Registry::load collapses duplicate JSON keys before validate_persisted — an empty world, non-canonical path, or duplicate placement hidden behind a duplicate key is silently restored at boot #6504) — this issue carries
status/blocked until they land; the implementation follow-up is enqueued once the gating clears
- Queue: triage packet enqueued this pass → pilot task 11167 (queue
repo-health-code-pilot, verified by dedupe re-read: status queued, attempts=0, last_error=null)
dezren39 commented on Nov 6, 2026 agent-note:v1 — triage findings for task 11167 (lane code-q, 2026-11-06)
Scope confirmed against current main. Issue #6521 matches design #6520 and files/designs/code-duplicate-json-keys.md (keep-the-four-repos-healthy goal workspace): Phase 4 is the closing inventory of every production serde_json::from_str / from_value / from_slice site in pkgs/id/src + pkgs/id/crates, each dispositioned gate / not-a-gate with file:line evidence, required dispositions (a) signed-object JSON, (b) self-produced files, (c) non-JSON decoders, (d) fixture double-collapse confirmation, and the contract statement landed in the shared helper's module documentation. No scope change found; the design's recorded decisions (every-depth refusal; one shared helper in id-core; derived serde behaviour is never the defence) stand unchallenged.
Gating: NOT cleared — the inventory must not start yet. Verified fresh via gh at 2026-11-06 ~14:05Z:
- Phase 1 — issue id(world): parse_records silently collapses duplicate JSON keys — an oversized value hidden behind a duplicate passes MAX_RECORD_VALUE_BYTES, and the record-count cap is checked after collapse #6473 OPEN, issue id(world_fixture): decode accepts duplicate JSON fields in header and event lines — check_keys and the window check only ever see the collapsed last value #6474 OPEN
- Phase 2 — issue id(world_presentation): parse_surface collapses duplicate JSON keys before its checks — a forbidden version, width, lines, or rows hidden behind a duplicate is accepted #6491 OPEN, issue id(world_caps): parse_wants collapses duplicate JSON keys before its checks — a forbidden version, cap, id, or list size hidden behind a duplicate is accepted #6499 OPEN
- Phase 3 — issue id(publications): Registry::load collapses duplicate JSON keys before validate_persisted — an empty world, non-canonical path, or duplicate placement hidden behind a duplicate key is silently restored at boot #6504 OPEN
Corroborating source check on origin/main (6046e1d): parse_json_without_duplicate_keys exists only as a private fn in the id crate at pkgs/id/src/world_session/mod.rs:880 (5 references, all in world_session). The shared helper has NOT moved to its id-core home, so dispositions written now would be written against the wrong, pre-Phase-2 helper — exactly what the gating forbids.
Follow-up packet: deliberately NOT enqueued. Per the triage packet for task 11167, the implementation follow-up is enqueued once the gating clears, with issue #6521's acceptance criteria intact. Enqueueing it now would let a worker claim inventory work against a helper that has not landed in id-core.
Resume condition: all of #6473, #6474, #6491, #6499, #6504 closed (fixes merged). Task 11167 is parked; on resume, re-verify the five issues and the helper's id-core home, then enqueue the Phase 4 implementation packet.
Verification commands for the follow-up (recorded per packet): the inventory grep over pkgs/id/src + pkgs/id/crates for the three serde_json::from_* entry points, plus the helper's targeted tests in its id-core home (CI dispatch per fleet policy; no builds on the sandbox). dezren39 commented on Nov 11, 2026 agent-note:v1
lane: code-c
task: 14357
issue: #6521
stage: claimed
state: in-progress
Lane code-c claimed task 14357 (small_fix / triage packet for issue #6521, Phase 4 of #6520). Execution-lane assignment returned direct (lane row 6238) — this lane works it itself per #8187, no handoff.
Fresh revalidation (gh, 2026-11-11T22:57Z): issue #6521 OPEN, no held / user/owned / do-not-merge / do-not-auto-edit labels, no status/needs-triage. Gate state has CHANGED since the last park: gate issues #6474 and #6491 are now CLOSED (verified fresh this shift), as are #6473, #6499, and #6504. The Phase 4 entry condition is now met — triaging the inventory scope at current main.
next: production parse-site extraction at current main, required dispositions (a)-(d) evidence, triage note + follow-on scoping
dezren39 commented on Nov 11, 2026 agent-note:v1
lane: code-c
task: 14357
issue: #6521
stage: done
state: done
Agent note — done (task 14357, lane code-c)
Phase 4 of design #6520 is complete: PR #8796 (53c1696) merged the closing JSON-parse inventory and the contract statement.
- Gate cleared first: all five gate issues verified CLOSED fresh this shift (id(world): parse_records silently collapses duplicate JSON keys — an oversized value hidden behind a duplicate passes MAX_RECORD_VALUE_BYTES, and the record-count cap is checked after collapse #6473, id(world_fixture): decode accepts duplicate JSON fields in header and event lines — check_keys and the window check only ever see the collapsed last value #6474, id(world_presentation): parse_surface collapses duplicate JSON keys before its checks — a forbidden version, width, lines, or rows hidden behind a duplicate is accepted #6491, id(world_caps): parse_wants collapses duplicate JSON keys before its checks — a forbidden version, cap, id, or list size hidden behind a duplicate is accepted #6499, id(publications): Registry::load collapses duplicate JSON keys before validate_persisted — an empty world, non-canonical path, or duplicate placement hidden behind a duplicate key is silently restored at boot #6504) — the entry condition that parked this task on 2026-11-11T00:08Z no longer holds.
- Inventory:
pkgs/id/crates/id-core/JSON_PARSE_INVENTORY.md at main — 94 production serde_json parse sites in pkgs/id/src + pkgs/id/crates dispositioned with file:line evidence (10 gate — routed, 27 gate — follow-up, 54 not-a-gate with per-site reasons, 3 mechanism/wiring); 136 test sites grouped.
- Contract statement: landed in the module documentation of
pkgs/id/crates/id-core/src/json_unique.rs — the rule, the one mechanism, the gate definition, the signed-object decision, and the non-JSON boundary.
- (a) Signed-object JSON: receipt gates take the refusal (decision + reasons in the inventory). (b) Self-produced files dispositioned per site (22). (c) Postcard/MessagePack recorded as a stated exception with a reopening trigger. (d) Fixture double-collapse confirmed closed by id(world_fixture): decode accepts duplicate JSON fields in header and event lines — check_keys and the window check only ever see the collapsed last value #6474, regression test
world_fixture.rs:973 cited.
- Follow-up: the 27 unrouted gate sites are filed as issue Route the remaining duplicate-key gate sites through parse_json_without_duplicate_keys (Phase 4 follow-on of #6521) #8794 with the conversion pattern — no silent exceptions.
- Tests:
cargo test -p id-core --lib json_unique on the laptop at 3144b53: 2 passed, 0 failed. PR checks were QUEUED in the fleet-wide runner stall at merge (none failed); docs + module-doc comments only, no behavior change.
Issue #6521 closes with the merge of PR #8796 (its acceptance criteria are met by the inventory + contract statement + filed follow-up #8794).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|