Title: id(world_net): lib-test target does not compile on main — info_details_rejects_malformed_active_module_hash calls a nonexistent inject_json helper (14 errors, all id lib tests blocked) · Issue #6643 · developing-today/code · GitHub
Open Graph Title: id(world_net): lib-test target does not compile on main — info_details_rejects_malformed_active_module_hash calls a nonexistent inject_json helper (14 errors, all id lib tests blocked) · Issue #6643 · developing-today/code
X Title: id(world_net): lib-test target does not compile on main — info_details_rejects_malformed_active_module_hash calls a nonexistent inject_json helper (14 errors, all id lib tests blocked) · Issue #6643 · developing-today/code
Description: id(world_net): the lib-test target does not compile on main — info_details_rejects_malformed_active_module_hash calls a nonexistent inject_json helper (14 errors) Summary On current origin/main, cargo test -p id --lib fails to compile. T...
Open Graph Description: id(world_net): the lib-test target does not compile on main — info_details_rejects_malformed_active_module_hash calls a nonexistent inject_json helper (14 errors) Summary On current origin/main, ca...
X Description: id(world_net): the lib-test target does not compile on main — info_details_rejects_malformed_active_module_hash calls a nonexistent inject_json helper (14 errors) Summary On current origin/main, ca...
Opengraph URL: https://github.com/developing-today/code/issues/6643
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(world_net): lib-test target does not compile on main — info_details_rejects_malformed_active_module_hash calls a nonexistent inject_json helper (14 errors, all id lib tests blocked)","articleBody":"# id(world_net): the lib-test target does not compile on main — `info_details_rejects_malformed_active_module_hash` calls a nonexistent `inject_json` helper (14 errors)\n\n## Summary\n\nOn current `origin/main`, `cargo test -p id --lib` fails to compile. The test added with the #6633 fix, `info_details_rejects_malformed_active_module_hash` (`pkgs/id/src/world_net.rs:3426-3519` at `4e92da9311`), drives the client through a helper that does not exist:\n\n- 7 × `error[E0599]: no method named 'inject_json' found for struct 'world_net::WorldClient'` — `client.inject_json(reply).await` at (snapshot lines) :3443/:3455/:3466/:3478/:3490/:3502/:3514. There is no `inject_json` anywhere in `pkgs/id` (`grep -rn \"fn inject_json\"` = 0 hits on origin/main).\n- 7 × `error: cannot find macro 'json' in this scope` — the test uses bare `json!({...})` without importing `serde_json::json` in the test module.\n\nTotal: `error: could not compile 'id' (lib test) due to 14 previous errors`. The production half of the same change (the `info_details` match-and-bail on a mistyped `active_module_hash`) is present and correct — only its regression test is broken. The breakage arrived in the repo-keeper snapshot `4ecb3510c9` (\"snapshot code 2026-11-06 17:23 CST\"), which swept the in-progress fix into main.\n\n## Evidence (verified this run)\n\n- Laptop, worktree at `4ecb3510c9` (== origin/main at the time): `cargo test -p id --lib --no-run` → the 14 errors above, every one inside this single test; no other file errors.\n- Re-verified at fresh `origin/main` `4e92da9311` (only intervening commit is the unrelated PR #6639 merge): the test is still present at `world_net.rs:3426`, and `fn inject_json` still has 0 definitions in the crate.\n- Control: with that one test removed in the probe worktree (locally only, never committed), the lib-test target compiles and runs — 2,313 tests selectable, and the run's unrelated probe test passed. The breakage is exactly this test, nothing else.\n\n## Why it matters\n\nWhile the lib-test target does not compile, **no** `id` unit test can run — locally, in a probe worktree, or in CI. Every verification of the pkgs/id work that dominates this repo's current queue (the world_net reply-validation family included) is blocked or forced into workarounds, and the #6633 fix itself has no working regression coverage: the test that was supposed to pin it cannot execute.\n\n## Acceptance criteria\n\n- [ ] `cargo test -p id --lib` compiles on main.\n- [ ] The #6633 coverage intent is preserved by a working test: `info_details` against scripted replies — string hash → `Some`, `null` → `None`, missing → `None`, number/boolean/array/object → Err \"malformed active_module_hash\". Drive it the way the neighboring world_net tests do (a scripted/rogue host via `Router` + `ProtocolHandler` speaking the world ALPN, or a real `#[cfg(test)]` frame-injection helper on `WorldClient` if that is the intended design — implemented, not just called).\n- [ ] The malformed-hash cases from the broken test (123, true, [\"abc\"], {\"hash\": \"abc\"}) all appear in the working test.\n- [ ] No production-code change is needed: the `info_details` fix itself stands.\n\n## Dedup\n\n`gh issue list --search` (all states) on 2026-11-06 for \"inject_json\" and for world_net test compile breakage: no hits; `gh pr list --search 6633`: no PR. Distinct from #6633 itself (the reply-validation bug, whose production fix has landed on main via snapshot — this issue is only its broken test). Related: #6641 (filed this run) hit this breakage as a probe blocker and worked around it locally.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-07T00:15:26Z","url":"https://github.com/developing-today/code/issues/6643"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c00db412-7139-a405-196a-64c3c712c9d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC88:EF808:3C4808:51369D:6B07645C |
| html-safe-nonce | 781d6022a24baad4dca35f1d77bbbbb596a7011715de31c2de2f186e76e933d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzg4OkVGODA4OjNDNDgwODo1MTM2OUQ6NkIwNzY0NUMiLCJ2aXNpdG9yX2lkIjoiMjQ2ODg0ODQyMzAzMDcxMTM4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d273c6c0eccb3607eefbe2902a3f63022f0d4efac3cd8106a2d6a2f88e8dd4fb |
| hovercard-subject-tag | issue:6253015857 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/6643/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c0d46232badec012958e38424fe835401d032e8f6add5598112d00f0109d782c/developing-today/code/issues/6643 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c0d46232badec012958e38424fe835401d032e8f6add5598112d00f0109d782c/developing-today/code/issues/6643 |
| og:image:alt | id(world_net): the lib-test target does not compile on main — info_details_rejects_malformed_active_module_hash calls a nonexistent inject_json helper (14 errors) Summary On current origin/main, ca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a557ecc960a3ae6e299fc66b0bc9132072f8860191648e6749fee5d3ff00d82 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bd845eb7947c1ed8c850f7ab415a51339d162de3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width