Title: fix(id): fuzz numeric invariants compare through f64 — integers above 2^53 lose precision and violated invariants can pass (PR #8635 review finding) · Issue #8752 · developing-today/code · GitHub
Open Graph Title: fix(id): fuzz numeric invariants compare through f64 — integers above 2^53 lose precision and violated invariants can pass (PR #8635 review finding) · Issue #8752 · developing-today/code
X Title: fix(id): fuzz numeric invariants compare through f64 — integers above 2^53 lose precision and violated invariants can pass (PR #8635 review finding) · Issue #8752 · developing-today/code
Description: Finding (from PR review) The fuzz campaign's numeric invariants convert record values through f64, silently losing integer precision above 2^53 — so a violated numeric_order or numeric_bounds invariant can pass. Records stores serde_json...
Open Graph Description: Finding (from PR review) The fuzz campaign's numeric invariants convert record values through f64, silently losing integer precision above 2^53 — so a violated numeric_order or numeric_bounds invar...
X Description: Finding (from PR review) The fuzz campaign's numeric invariants convert record values through f64, silently losing integer precision above 2^53 — so a violated numeric_order or numeric_bounds i...
Opengraph URL: https://github.com/developing-today/code/issues/8752
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(id): fuzz numeric invariants compare through f64 — integers above 2^53 lose precision and violated invariants can pass (PR #8635 review finding)","articleBody":"## Finding (from PR review)\n\nThe fuzz campaign's numeric invariants convert record values through `f64`, silently losing integer precision above 2^53 — so a violated `numeric_order` or `numeric_bounds` invariant can pass. `Records` stores `serde_json::Value`, which preserves these integers exactly; the loss happens only in the campaign's comparison helper.\n\nCodex raised this on PR #8635 (feat(id): deterministic fuzz for id world dev (#5541 phase 4)):\n\n- Source PR: https://github.com/developing-today/code/pull/8635\n- Comment: https://github.com/developing-today/code/pull/8635#discussion_r4536494862 (chatgpt-codex-connector[bot], 2026-11-11T10:02:35Z, P2)\n- File:line at review time: `pkgs/id/src/world_dev.rs:625`\n\nEssence of the comment: with `first = 9007199254740993` and `second = 9007199254740992`, `numeric_order` sees equal values after conversion although `first > second`; a numeric maximum of 9007199254740992 similarly fails to reject the larger integer. Preserve integer precision during comparisons, or explicitly reject values and bounds that cannot be checked exactly rather than reporting success.\n\n## No-response evidence\n\n- PR #8635 merged at 2026-11-11T10:00:58Z (merge commit b369657b7f3e); the Codex comments were posted at 2026-11-11T10:02:35Z on the merged head 724cf673e9, and no reply of any kind follows them (fresh `gh api` re-read 2026-11-11T18:03Z: the PR has exactly 3 inline comments, all Codex, none with `in_reply_to_id`).\n- GraphQL `reviewThreads` check (2026-11-11): all 3 threads on PR #8635 are unresolved.\n- No open or closed issue covers this finding (searched `world_dev` / fuzz / `numeric_order` / f64 precision / PR #8635 on 2026-11-11: only the parent implementation issue #5541, which does not mention this defect).\n\n## Still-live evidence (current main, read 2026-11-11 via `gh api`, two reads)\n\n`pkgs/id/src/world_dev.rs` on main:\n\n- `fn numeric(...)` (~lines 1378–1387) returns `value.as_f64()` — a `serde_json` integer above 2^53 is rounded at this conversion.\n- `FuzzInvariant::NumericOrder` (~lines 1366–1375) compares the two `f64` results with `a > b`; `NumericBounds` (~lines 1351–1365) compares against `min`/`max: Option\u003cf64>`. Equal-after-rounding values therefore pass both checks.\n\n## Acceptance criteria\n\n- Numeric invariant comparisons are exact for integer record values (e.g. compare as `i64`/`u64`/`serde_json::Number` before any float conversion), or values/bounds that cannot be represented exactly are rejected as a campaign error rather than reported as passing — with regression tests at the 2^53 boundary (9007199254740993 vs 9007199254740992).\n- Or: resolve by a documented decision on this issue explaining why inexact comparison is acceptable for declared invariants.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-11T18:05:13Z","url":"https://github.com/developing-today/code/issues/8752"}
| 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:2e17b1d8-1046-e5c6-24df-0c67392ea2af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9316:1CA0E6:6FB874:9634B6:6B062D7A |
| html-safe-nonce | 7905f1f57e9ec2c4ddc0b73e3c0a63caf8b5ab0cccfa8fedbf1b3f98ae6dbe1b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzE2OjFDQTBFNjo2RkI4NzQ6OTYzNEI2OjZCMDYyRDdBIiwidmlzaXRvcl9pZCI6IjQxMTM3NDM4MzI4MDA0Mzk2NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b8c1fb2d28d7400de40db8fc4f5eb98ab869ffa02a54baaf1ebcbef32684be92 |
| hovercard-subject-tag | issue:6334383053 |
| 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/8752/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbc55e711e176881da1560e4c58bd3f4b585f8c3476e7196f23c5b022ff8de5d/developing-today/code/issues/8752 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbc55e711e176881da1560e4c58bd3f4b585f8c3476e7196f23c5b022ff8de5d/developing-today/code/issues/8752 |
| og:image:alt | Finding (from PR review) The fuzz campaign's numeric invariants convert record values through f64, silently losing integer precision above 2^53 — so a violated numeric_order or numeric_bounds invar... |
| 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 | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| 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 | 494ea0bb1e0feef734a83e2628697647755e8864 |
| 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