Title: id world stats fails against a live host: "expected a query frame" (caps/profile frames refused mid-session) · Issue #6802 · developing-today/code · GitHub
Open Graph Title: id world stats fails against a live host: "expected a query frame" (caps/profile frames refused mid-session) · Issue #6802 · developing-today/code
X Title: id world stats fails against a live host: "expected a query frame" (caps/profile frames refused mid-session) · Issue #6802 · developing-today/code
Description: Bug revealed by #5238's execution tests (9-8 verb coverage) id world stats
Open Graph Description: Bug revealed by #5238's execution tests (9-8 verb coverage) id world stats
X Description: Bug revealed by #5238's execution tests (9-8 verb coverage) id world stats <node> --capability <cap> fails against a live world host: Error: expected a query frame Cause The stats v...
Opengraph URL: https://github.com/developing-today/code/issues/6802
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id world stats fails against a live host: \"expected a query frame\" (caps/profile frames refused mid-session)","articleBody":"## Bug revealed by #5238's execution tests (9-8 verb coverage)\n\n`id world stats \u003cnode> --capability \u003ccap>` fails against a live world host:\n\n```\nError: expected a query frame\n```\n\n## Cause\n\nThe stats verb runs four queries over ONE connection (`id/src/commands/world.rs`, `WorldCommand::Stats`): `info_details` → `caps` → `execution_profile` → `metrics`.\n\nThe host's session handling splits frames into two disjoint sets:\n\n- First-frame dispatch (`id/src/world_session/mod.rs`, ~lines 1323/1483) handles `Caps` and `ExecutionProfileInfo` as one-shot sessions.\n- `query_session` (~line 1590; doc: \"Serve query frames (info, records, records_ticket, download_module)\") loops only over `Join` / `Info` / `Metrics` / `Records` / `RecordsTicket` / `DownloadModule`; anything else falls to the default arm (~line 1748) and is refused with `expected a query frame`.\n\nSo stats' first query (`info`) succeeds, its second (`caps`) is refused, and the verb errors out. Each query works as a standalone verb (`world caps`, `world profile` both execute fine against the same host) — only the combination on one connection fails.\n\n## Evidence\n\nExecution test added under #5238 (live counter world on a spawned host, one committed input event):\n\n- `world logs` tailed the event frame — pass\n- `world caps --ceiling time.now` + read-back — pass\n- `world profile --wasm-fuel 424242` + read-back — pass\n- `world stats` — FAIL: `Error: expected a query frame` (test panicked at the stats call)\n\nThe stats execution test is committed `#[ignore]`d under #5238 naming this issue; un-ignore it here.\n\n## Fix options\n\n1. Server: teach `query_session` the read-only `Caps` and `ExecutionProfileInfo` frames (capability-authorized, like `Info`/`Metrics`). The joined phase already serves both (~lines 2749/2684). This matches the frames' query nature.\n2. Client: have the stats verb open a fresh connection per query. Works against older hosts; more handshakes.\n\nOption 1 looks like the protocol-level fix; either must keep the malformed-reply validation from #6624/#6636 intact.\n\n## Acceptance criteria\n\n- [ ] `id world stats` succeeds against a live host and prints the joined JSON (world_id, active_module_hash, current_sequence, caps, profile, metrics).\n- [ ] The `#[ignore]`d stats execution test from #5238 runs and passes; the ignore is removed.\n- [ ] Existing caps/profile/stats-adjacent tests stay green.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-07T05:17:38Z","url":"https://github.com/developing-today/code/issues/6802"}
| 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:d02bcf7d-485c-9c6b-b579-cb10ebd12de0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C020:113BA5:8BC958:BA0762:6B063524 |
| html-safe-nonce | 79a3f726237df5dcd07cf7c336d2e168bef5c9f538c1d9701353f4fa76192e25 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDIwOjExM0JBNTo4QkM5NTg6QkEwNzYyOjZCMDYzNTI0IiwidmlzaXRvcl9pZCI6Ijc3OTAwNzQ3MjUzNjMyMzQwODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1b22f67028a6eff9a15b8f88a5783e419155202ab24ddf57ad52a7a40f61525d |
| hovercard-subject-tag | issue:6255512272 |
| 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/6802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ac41aed942858b3ef431931db65ab40955b48e0f4608d1528f71b63d14be5d3/developing-today/code/issues/6802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ac41aed942858b3ef431931db65ab40955b48e0f4608d1528f71b63d14be5d3/developing-today/code/issues/6802 |
| og:image:alt | Bug revealed by #5238's execution tests (9-8 verb coverage) id world stats |
| 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 | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| 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 | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| 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