Title: id(world): records.read cap pages can exceed the result_event size cap — admitted 768 KiB pages are replaced by result_too_large above 64 KiB · Issue #4888 · developing-today/code · GitHub
Open Graph Title: id(world): records.read cap pages can exceed the result_event size cap — admitted 768 KiB pages are replaced by result_too_large above 64 KiB · Issue #4888 · developing-today/code
X Title: id(world): records.read cap pages can exceed the result_event size cap — admitted 768 KiB pages are replaced by result_too_large above 64 KiB · Issue #4888 · developing-today/code
Description: Finding (from PR #4856 CodeRabbit review, dispositioned by task 4880) records.read pages are admitted up to MAX_RECORDS_PAGE_BYTES (768 KiB), but cap results are delivered through result_event (pkgs/id/crates/id-core/src/world_caps.rs), ...
Open Graph Description: Finding (from PR #4856 CodeRabbit review, dispositioned by task 4880) records.read pages are admitted up to MAX_RECORDS_PAGE_BYTES (768 KiB), but cap results are delivered through result_event (pkg...
X Description: Finding (from PR #4856 CodeRabbit review, dispositioned by task 4880) records.read pages are admitted up to MAX_RECORDS_PAGE_BYTES (768 KiB), but cap results are delivered through result_event (pkg...
Opengraph URL: https://github.com/developing-today/code/issues/4888
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(world): records.read cap pages can exceed the result_event size cap — admitted 768 KiB pages are replaced by result_too_large above 64 KiB","articleBody":"## Finding (from PR #4856 CodeRabbit review, dispositioned by task 4880)\n\n`records.read` pages are admitted up to `MAX_RECORDS_PAGE_BYTES` (768 KiB), but cap results are delivered through `result_event` (pkgs/id/crates/id-core/src/world_caps.rs), which replaces any serialized result event larger than `MAX_EVENT_BYTES` (64 KiB) with a `result_too_large` error. A records page between 64 KiB and 768 KiB therefore passes the page check in `execute_records_read` (pkgs/id/src/world/actor.rs) yet can never reach the program as records.\n\n## Evidence\n- `pkgs/id/crates/id-core/src/world_caps.rs`: `MAX_EVENT_BYTES = 64 * 1024`; `result_event` returns the `result_too_large` error above that size; `RECORDS_READ_BOUNDS` (added by PR #4856) reports `ProviderBound::ResponseBytes(MAX_RECORDS_PAGE_BYTES)`.\n- `pkgs/id/src/world/actor.rs`: `execute_records_read` admits records until `used + size > MAX_RECORDS_PAGE_BYTES` (768 KiB).\n- Note `MAX_RECORDS_PAGE_BYTES` also bounds the session-protocol page path (pkgs/id/src/world_session/mod.rs), which is a different consumer from cap result events — the fix must distinguish the two budgets, not blindly shrink the shared constant.\n\n## Why this is a follow-up, not part of PR #4856\nPR #4856 (issue #1061 slice 1) is a no-behavior-change registry refactor; bounding the records page changes runtime behavior and belongs in its own change with its own tests.\n\n## Acceptance\n- A `records.read` cap result can never be admitted at a size `result_event` will refuse: derive the cap-result page bound from the event limit minus the result envelope, or route the result so the admitted page is deliverable.\n- `RECORDS_READ_BOUNDS` reports the bound that actually applies to cap results.\n- Regression test: a records page near the bound is delivered as records (not replaced by `result_too_large`), and the session-protocol page budget is unchanged.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-03T12:39:33Z","url":"https://github.com/developing-today/code/issues/4888"}
| 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:7735a813-faaf-cabb-7d90-1b8f6ef50f54 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C590:8AD7D:745491:9B5405:6B062FBA |
| html-safe-nonce | 84822c446beb33dc256c9c646465dd6fc27aa4a3075ca23563fbad233bcc7d31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTkwOjhBRDdEOjc0NTQ5MTo5QjU0MDU6NkIwNjJGQkEiLCJ2aXNpdG9yX2lkIjoiOTE2OTk3NTM0MzA3NDEyNzgwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a09935216ba850f11610c2f8ea4363b6c5b5677993dc8de0b1ee7f32f3430366 |
| hovercard-subject-tag | issue:6182743484 |
| 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/4888/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4556a7000952f8806b1c5b2046ed0435478e789b6474a42fbee5a14a696ddc28/developing-today/code/issues/4888 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4556a7000952f8806b1c5b2046ed0435478e789b6474a42fbee5a14a696ddc28/developing-today/code/issues/4888 |
| og:image:alt | Finding (from PR #4856 CodeRabbit review, dispositioned by task 4880) records.read pages are admitted up to MAX_RECORDS_PAGE_BYTES (768 KiB), but cap results are delivered through result_event (pkg... |
| 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