Repository navigation
Closed
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitiveImportant and time-sensitivequeue/queuedHas a queued queue taskHas a queued queue tasksource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus/needs-triageNot yet triaged; needs a first lookNot yet triaged; needs a first lookstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
Summary
The id lib test suite does not compile on current main: the test info_details_rejects_malformed_active_module_hash (pkgs/id/src/world_net.rs:3421, added by repo-keeper snapshot 4ecb351) calls client.inject_json(...) seven times (:3443, :3455, :3466, :3478, :3490, :3502, :3514), but no inject_json method exists anywhere in the crate — so every cargo test for the id lib fails at compile time and no lib test can run at all.
Evidence (verified this run, laptop @ 4ecb351)
grep -rn "inject_json" pkgs/id/src pkgs/id/cratesreturns only the seven call sites in the one test; there is no definition, trait, or macro providing it.- Laptop, clean worktree at 4ecb351, verified twice independently in
pkgs/id:cargo test --lib info_details_rejects_malformed_active_module_hashfails to compile, andcargo check --lib --tests --message-format shortreports 14 errors in this one test — 7×error[E0599]: no method named inject_json found for struct WorldClient(:3443, :3455, :3466, :3478, :3490, :3502, :3514) and 7×error: cannot find macro json in this scope(:3436, :3460, :3471, :3483, :3495, :3507 and one more call site) — ending witherror: could not compile id (lib test) due to 14 previous errors. The test module does not importserde_json::jsoneither. - The snapshot commit 4ecb351 ("repo-keeper: snapshot code 2026-11-06 17:23 CST") landed both the (correct) production fix for id(world_net): info_details reads a mistyped 'active_module_hash' as Ok(None) — a malformed module_info reply reports "no module" for a world that has one #6633 in
info_detailsand this test in the same sweep — the production fix is good; only the test harness is missing. - The test's design cannot work as written even if a stub existed:
info_detailsreads its reply from the real host connection (host(Some("admin"))+invite_for), so an injected reply would race / be ignored in favour of the live host'smodule_infoframe. The malformed-reply cases need a scripted host that answers theinforequest with the malformed frame (the pattern already used by the fleet's scripted-host probes for this file), or a factored-out reply-parsing helper that the test can call directly.
Why it matters
A non-compiling test suite silently disables the entire id lib test safety net on main: no other lib test in the crate can run, CI/local verification for any pkgs/id change is blocked or — worse — skipped, and the #6633 fix currently has no working regression test despite appearances.
Acceptance criteria
-
cargo test --libinpkgs/idcompiles on main. - The id(world_net): info_details reads a mistyped 'active_module_hash' as Ok(None) — a malformed module_info reply reports "no module" for a world that has one #6633 malformed-
active_module_hashcases (number / bool / array / object error; string and null controls pass) are covered by a test that actually runs and passes — via a scripted host replying with the malformed frames, or via a factored reply-parsing helper — not by deleting the coverage. - The valid-string and null controls from the original test are preserved.
- No production behavior change beyond what id(world_net): info_details reads a mistyped 'active_module_hash' as Ok(None) — a malformed module_info reply reports "no module" for a world that has one #6633 already landed.
Metadata
Metadata
Assignees
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitiveImportant and time-sensitivequeue/queuedHas a queued queue taskHas a queued queue tasksource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus/needs-triageNot yet triaged; needs a first lookNot yet triaged; needs a first lookstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 7, 2026
CODE-2045
dezren39 commentedon Nov 7, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 7, 2026
Cross-lane cross-link: #6643 (lane A) filed the identical inject_json lib-test breakage minutes after this issue and has been closed by its filer as a duplicate of this one. This issue is canonical; the duplicate never enqueued (PostgREST outage #6619), so no queue cleanup is owed for it.
dezren39 commentedon Nov 7, 2026
Fixed by PR #6675 (merged 779336f, from queue worker lane code-a working issue #6633 in fallback mode): the reply parsing was factored into
WorldClient::parse_module_info_replyand the test rewritten against it —cargo test -p id --libcompiles again andinfo_details_rejects_malformed_active_module_hashpasses on the laptop. Issue #6643 is the duplicate of this issue; both closed by the same PR.