GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #6521

New issue
Copy link
New issue
Copy link
Closed
Closed
Phase 4 of #6520 — closing JSON-parse inventory: disposition every serde_json parse site in pkgs/id against the duplicate-key refusal contract#6521
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/enhancementsource/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 6, 2026
Issue body actions

Phase 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

  • (a) Signed-object JSON — artifact.rs from_slice struct
    decodes, boards.rs from_value over artifact bodies: a
    signature covers exact bytes, but a duplicated key inside a signed
    body still makes two readers disagree about what was signed.
    Decide, with reasons: receipt gates for signed objects take the
    refusal too, or stand as deliberately-out (cf. Design: a signed artifact is validated as strictly as it is built — one receipt contract for pkgs/id artifacts #3231's receipt
    contract).
  • (b) Self-produced files — serve info and any file the crate
    writes and reads back: the writer cannot produce a duplicate, so
    refusal is defence against hand edits only. Disposition per site,
    not by assumption.
  • (c) Non-JSON decoders — postcard / MessagePack map types can
    also carry duplicate map keys. No filed instance: record the
    boundary (in this contract's scope as a stated exception, or
    filed as its own follow-up), do not silently extend the helper.
  • (d) The fixture double-collapse — confirm 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
    landing closed it (header records refused at the first parse);
    cite the regression test.

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.

Activity

Next
  1. dezren39
    added
    status/blockedQueue or user escalation state
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    developing-todayBot
    on Nov 6, 2026 – with developing.today
    Contributor
    More actions

    CODE-1977

  3. dezren39
    added
    kind/enhancement
    source/design-architectFiled by the repo design architect job
    on Nov 6, 2026
  4. dezren39
    added a parent issue on Nov 6, 2026
    • Design: a duplicate key is a parse error — one duplicate-key refusal contract for pkgs/id's checked JSON gates #6520
  5. dezren39
    added
    queue/queuedHas a queued queue task
    on Nov 6, 2026
  6. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 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)
  7. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 6, 2026
  8. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    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).

  9. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    status/blockedQueue or user escalation state
    on Nov 6, 2026
  10. 135 remaining items

  11. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  12. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    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

  13. developing-today
    added
    status:in-review
    on Nov 11, 2026
  14. dezren39
    added 2 commits that reference this issue on Nov 11, 2026

    docs(id): disposition Codex findings on the #6521 inventory — collab …

    7b80ae4

    docs(id): Phase 4 closing JSON-parse inventory + duplicate-key contra…

    53c1696
  15. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 11, 2026
  16. developing-today
    closed this as completedon Nov 11, 2026
  17. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    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).

  18. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/enhancementsource/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.