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 — id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path · Issue #6523 · developing-today/code

id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path #6523

New issue
Copy link
New issue
Copy link
Closed
#6996
Closed
id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path#6523
#6996
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

Problem

install_module_session in pkgs/id/src/world_session/mod.rs is the one remaining ClientFrame parse path that does not route through the module's strict duplicate-key parser. Every other peer-frame entry point refuses a frame containing duplicate JSON keys at any depth; the module-install path parses chunk and completion frames with plain serde_json::from_str::<ClientFrame>, which refuses duplicate known fields (serde derive) but silently collapses duplicate keys in fields the frame type ignores — the exact residual class PR #6508 pinned and fixed for query_session.

Evidence (origin/main 6046e1d, pkgs/id/src/world_session/mod.rs):

  • Strict helper: parse_json_without_duplicate_keys at mod.rs:880. Used by the first frame (mod.rs:1026), query_session (mod.rs:1721–1722, via PR fix(id): refuse duplicate JSON keys in world_session first/joined frames (#6501) #6508 for issue id(world_session): first-frame and joined-frame parsers collapse duplicate JSON keys before their checks — a hidden first type/world/capability value is never seen, and the sibling session paths reject the same bytes #6501), and the joined-frame handler (mod.rs:2663).
  • Install path: chunk frames parsed at mod.rs:2189 with serde_json::from_str::<ClientFrame>(&text); the install_end completion check at mod.rs:2208 matches serde_json::from_str::<ClientFrame>(text) the same way. Neither sees the strict helper.
  • Issue id(world_session): first-frame and joined-frame parsers collapse duplicate JSON keys before their checks — a hidden first type/world/capability value is never seen, and the sibling session paths reject the same bytes #6501 described the install path as the strict sibling oracle — true only for duplicate known fields. Duplicate keys in ignored/unknown fields, and duplicates nested inside an ignored object, pass both install parses untouched.

Verified this run on the laptop with a probe driving the real id crate's public run_session_with against a clean origin/main export (probe ~/git/fleet/probe-id-install-dupkeys; WorldService with admin token, install_begin with total_bytes: 1, one 1-byte chunk 0x00, then install_end; oracle = which error the session ends with — "Wasm module failed validation or initialization" means the frames were accepted and the upload reached module installation, "expected module chunk frame" means the chunk was refused at parse):

  • Control: valid chunk + valid install_end → "Wasm module failed validation or initialization" (accepted; reached install).
  • Chunk {"type":"install_chunk","offset":0,"data_hex":"00","bogus":1,"bogus":2} → same Wasm error: duplicate unknown keys silently accepted.
  • Chunk with "extra":{"a":1,"a":2} → same Wasm error: duplicates nested inside an ignored object silently accepted.
  • install_end as {"type":"install_end","bogus":1,"bogus":2} after a valid chunk → same Wasm error: the completion frame matched despite duplicate keys.
  • Chunk with duplicate known field "offset":0,"offset":0 → "expected module chunk frame" (refused by serde derive) — confirming the gap is precisely the ignored-field class, not all duplicates.

Why it matters

The install path is the admin module-upload gate: it runs after admin authorization and assembles the exact bytes whose hash is checked and which are then installed as a world module. It is the last session path where two readers of the same frame bytes can disagree about what was sent — the inconsistency the duplicate-key contract (design #6520; sibling fixes #6473, #6474, #6491, #6499, #6504, #6501) exists to remove. #6521 (the gated closing inventory) does not name this site; this issue is its disposition for the install path: it is a gate, not a not-a-gate.

Acceptance criteria

  • Chunk frames and the install_end frame in install_module_session are parsed through parse_json_without_duplicate_keys + serde_json::from_value::<ClientFrame> (or an equivalent strict route), so any duplicate key at any depth — known, unknown/ignored, or nested inside an ignored object — refuses the frame before any chunk bytes are appended or the upload is treated as complete.
  • Refusal behavior matches the current parse-failure behavior: a refused chunk ends the install with "expected module chunk frame"; a refused completion frame ends it with "expected install_end frame".
  • Regression tests (sandbox feature, mirroring the existing admin_upload_pins_validates_and_activates_a_roc_program harness and PR fix(id): refuse duplicate JSON keys in world_session first/joined frames (#6501) #6508's query-session cases) pin: duplicate unknown key in a chunk, duplicate key nested in an ignored chunk object, and duplicate unknown key in install_end — each refused; the valid upload flow still installs.
  • Existing world_session tests keep passing (cargo test -p id world_session on the laptop or CI).

Related: #6501 (first/joined/query paths), #6520 (duplicate-key contract), #6521 (closing inventory — install site not named there).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    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-1978

  3. dezren39
    added
    queue/queuedHas a queued queue task
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator-code-a
    • Session / ID: cron job new-issue-creator-code-a, run 2026-11-06 07:35 CST
    • Found via: filed this run
    • Task: Filed this issue — install_module_session chunk/install_end frames skip the duplicate-key refusal every other ClientFrame path applies; verified with a probe driving the real id crate (probe ~/git/fleet/probe-id-install-dupkeys on the laptop).
    • Expectation: effort s — triage via the enqueued repo-task packet; done looks like both install parses route through parse_json_without_duplicate_keys with regression tests mirroring PR fix(id): refuse duplicate JSON keys in world_session first/joined frames (#6501) #6508's query-session cases.
    • Links: queue packet packet-6523-small-fix.json (repo-health-code-pilot)
  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    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:v1

    • task: 11174
    • lane: code-f
    • event: handed_off
    • detail: Claimed by lane code-f (fresh task, attempts 1/4); execution-lane assignment is opencode. Checkpointed handed_off for the opencode claimant to launch the bound session.
  7. 31 remaining items

  8. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-o (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-o run 2026-11-06 11:32 CST; task 11174
    • Found via: claimed task 11174 this shift; execution-lane assignment returned opencode
    • Task: task 11174 for issue id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path #6523 (small_fix). Fresh check: issue id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path #6523 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit); PR fix(id): reject duplicate JSON keys in module install frames #6576 on branch queue/11174-6523-duplicate-key-install-frames is OPEN, not draft. Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session resumes from PR fix(id): reject duplicate JSON keys in module install frames #6576 (verify its state/CI first) and drives task 11174 to a terminal state. Attempts 4/4 — AT CAP.
    • Links: task 11174 · issue id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path #6523 · PR fix(id): reject duplicate JSON keys in module install frames #6576
  9. dezren39
    added
    queue/queuedHas a queued queue task
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/queuedHas a queued queue task
    on Nov 7, 2026
  10. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code, lane code-n)
    • Session / ID: task 11208
    • Found via: queue claim
    • Task: Fix issue id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path #6523 — route install_module_session chunk and install_end frame parses through parse_json_without_duplicate_keys, with regression tests mirroring PR fix(id): refuse duplicate JSON keys in world_session first/joined frames (#6501) #6508.
    • Expectation: effort s; done = both parses strict, tests pin the three duplicate cases, world_session tests pass (CI/laptop), PR opened and merged under standing criteria.
    • Links: issue id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path #6523; sibling fix PR fix(id): refuse duplicate JSON keys in world_session first/joined frames (#6501) #6508 (issue id(world_session): first-frame and joined-frame parsers collapse duplicate JSON keys before their checks — a hidden first type/world/capability value is never seen, and the sibling session paths reject the same bytes #6501)
  11. dezren39
    added a commit that references this issue on Nov 8, 2026

    Merge pull request #6996 from developing-today/queue/11208-6523-insta…

    62cea5b
  12. dezren39
    closed this as completedin #6996on Nov 8, 2026
  13. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code, lane code-n)
    • Session / ID: task 11208
    • Found via: queue claim
    • Task: Fix issue id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path #6523 — strict duplicate-key parsing for install chunk and install_end frames.
    • Expectation: met — PR fix(id/world_session): refuse duplicate JSON keys in install chunk and install_end frames (#6523) #6996 merged (merge commit 62cea5b501f3bbab82a22376bdc73b51d3395a03), issue id(world_session): install_module_session parses chunk and install_end frames without the duplicate-key refusal — duplicate keys in ignored fields silently collapse, unlike every other ClientFrame path #6523 closed by the PR.
    • Links: PR fix(id/world_session): refuse duplicate JSON keys in install chunk and install_end frames (#6523) #6996; branch queue/11208-6523-install-dup-keys; task 11208 completes as fixed_merged. Tests: cargo test -p id world_session exit 0 on the laptop; new admin_upload_rejects_duplicate_json_keys_in_chunk_and_install_end and the existing valid-upload test both pass; Codex review completed with no findings.
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  15. developing-today
    added
    status:done
    on Nov 8, 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/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    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.