Title: id(world_net): manifest_state silently drops a mistyped seed — a present-but-malformed seed reads as the capability-only None and is captured as seed 0 · Issue #6626 · developing-today/code · GitHub
Open Graph Title: id(world_net): manifest_state silently drops a mistyped seed — a present-but-malformed seed reads as the capability-only None and is captured as seed 0 · Issue #6626 · developing-today/code
X Title: id(world_net): manifest_state silently drops a mistyped seed — a present-but-malformed seed reads as the capability-only None and is captured as seed 0 · Issue #6626 · developing-today/code
Description: Problem WorldClient::manifest_state (pkgs/id/src/world_net.rs:961-995, on origin/main 075b2de) reads the two fields of the world_state reply with opposite strictness: Some("world_state") => Ok(( reply["seed"].as_u64(), // :978 serde_json...
Open Graph Description: Problem WorldClient::manifest_state (pkgs/id/src/world_net.rs:961-995, on origin/main 075b2de) reads the two fields of the world_state reply with opposite strictness: Some("world_state") => Ok(( re...
X Description: Problem WorldClient::manifest_state (pkgs/id/src/world_net.rs:961-995, on origin/main 075b2de) reads the two fields of the world_state reply with opposite strictness: Some("world_state") ...
Opengraph URL: https://github.com/developing-today/code/issues/6626
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(world_net): manifest_state silently drops a mistyped seed — a present-but-malformed seed reads as the capability-only None and is captured as seed 0","articleBody":"## Problem\n\n`WorldClient::manifest_state` (`pkgs/id/src/world_net.rs:961-995`, on\n`origin/main` 075b2de904) reads the two fields of the `world_state`\nreply with opposite strictness:\n\n```rust\nSome(\"world_state\") => Ok((\n reply[\"seed\"].as_u64(), // :978\n serde_json::from_value(reply[\"schedules\"].clone())\n .context(\"host sent a malformed schedule map\")?, // :979-980\n)),\n```\n\n`schedules` is decoded strictly and a malformed map errors. `seed` is\nread with a bare `as_u64()`: a **present but mistyped** seed — `\"42\"`,\n`-1`, `1.5`, `{}` — silently becomes `None`, indistinguishable from\nthe one legitimate `None` case, a capability-only read where the host\ndeliberately hides the seed (#240; `world_session/tests.rs:685`\n\"schedule_and_world_state_frames_round_trip_and_hide_the_seed\").\n\n## Verified this run (laptop probe, real `id` crate, scripted host)\n\nProbe `~/git/fleet/probe-policy-wt/pkgs/id/tests/probe_policy_reply.rs`,\ntest `probe_manifest_state_seed_shapes`:\n\n- CONTROL `{\"type\":\"world_state\",\"seed\":42,\"schedules\":{\"a\":1}}` →\n `Ok((Some(42), {\"a\":1}))`.\n- CONTROL no `seed` field (capability-only shape) → `Ok((None, {}))`\n — the legitimate `None`.\n- CASES seed `\"42\"` / `-1` / `1.5` / `{}` → all `Ok((None, {}))`,\n identical to the legitimate hidden-seed result.\n- ORACLE mistyped `schedules` (`{\"a\":\"x\"}`) → `Err`, proving the\n sibling field in the same reply is validated.\n\n## Why it matters\n\nThe consumer is world-manifest capture\n(`commands/world.rs:1145`, `capture_world_state`): it takes the\nreturned seed into `WorldState { seed: seed.unwrap_or(0), .. }`, the\nstate that `id world apply`/diff reconciles against. An admin read\nwhose seed arrived mistyped is silently downgraded to the\ncapability-only shape and then baked in as **seed 0** — a fabricated\ninstall seed in the captured manifest, with no error anywhere. The\nreply's own contract already distinguishes the two cases (field absent\n= hidden; field present = the seed); the client just has to check\npresence before type, the way the schedules arm checks its type.\n\n## Acceptance criteria\n\n- `manifest_state` errors when the `seed` field is present but not a\n `u64` (string, negative, float, object, array, bool), with an error\n naming the malformed seed; a genuinely absent seed still returns\n `None` for capability-only reads.\n- Regression tests with a scripted host covering: numeric seed,\n absent seed, and each mistyped-seed shape; mistyped `schedules`\n continues to error.\n- No change to the host side or to the #240 seed-hiding behavior.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-06T22:04:37Z","url":"https://github.com/developing-today/code/issues/6626"}
| 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:587e84f2-d184-d285-ee33-781098ef8969 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DCC:3947BC:34313E:448D5E:6B0763F9 |
| html-safe-nonce | fe97dbadaba78fe7c222be19e5991d6d07686fb6b012c2c5263a29c1e1e0e99b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RENDOjM5NDdCQzozNDMxM0U6NDQ4RDVFOjZCMDc2M0Y5IiwidmlzaXRvcl9pZCI6IjI1MjU3OTgwMDE0NTM1MjM5NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f639c196698eae768d47cddc5faa4c3141f7a224b52f7f7d2be635f00f39709 |
| hovercard-subject-tag | issue:6251453493 |
| 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/6626/issue_layout |
| twitter:image | https://opengraph.githubassets.com/88ff62d0c172acde7d39b49d80bc2b91c4a9dca6f04a23604cc585af6d98c847/developing-today/code/issues/6626 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/88ff62d0c172acde7d39b49d80bc2b91c4a9dca6f04a23604cc585af6d98c847/developing-today/code/issues/6626 |
| og:image:alt | Problem WorldClient::manifest_state (pkgs/id/src/world_net.rs:961-995, on origin/main 075b2de) reads the two fields of the world_state reply with opposite strictness: Some("world_state") => Ok(( re... |
| 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