René's URL Explorer Experiment


Title: id(web/world): session-WS records frame shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor · Issue #7908 · developing-today/code · GitHub

Open Graph Title: id(web/world): session-WS records frame shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor · Issue #7908 · developing-today/code

X Title: id(web/world): session-WS records frame shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor · Issue #7908 · developing-today/code

Description: id(web/world): session-WS records frame is shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor Summary On the world page, the session WebSocket's records frame h...

Open Graph Description: id(web/world): session-WS records frame is shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor Summary On the world page,...

X Description: id(web/world): session-WS records frame is shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor Summary On the world page,...

Opengraph URL: https://github.com/developing-today/code/issues/7908

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(web/world): session-WS records frame shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor","articleBody":"# id(web/world): session-WS `records` frame is shape-trusted — a string `records` renders per-character entries, a non-string `next_after` is echoed back as the pagination cursor\n\n## Summary\n\nOn the world page, the session WebSocket's `records` frame handler in\n`pkgs/id/web/src/world.ts` trusts the frame's shape, unlike its sibling\nhandlers in the same `receive()` switch. A wrong-shape frame from the\nserver (stale/buggy host, middlebox, or a future server change) is not\nrejected: its payload is merged and rendered as if it were the world's\nrecords, and a malformed pagination cursor is sent straight back to the\nserver as the next page request.\n\n## Evidence (verified on main @ 1f5ac11276)\n\n`pkgs/id/web/src/world.ts`:\n\n- The frame is accepted with a bare cast — line 199: `const frame = parsed as WorldFrame;` — and the declared contract is `records?: Record\u003cstring, unknown>` / `next_after?: string | null` (lines 37–38).\n- Sibling cases validate before use: `snapshot` is checked with `isWorldSnapshot` (line 203) and `event` with `isWorldEvent` (line 223); failures go to `rejectFrame()` (line 176).\n- The `records` case (line 267) has no equivalent guard:\n  - line 272: `for (const [k, v] of Object.entries(frame.records ?? {}))` — `Object.entries` on a **string** yields per-character entries, on an **array** per-index entries, on a **number/boolean** nothing at all.\n  - line 275: `recordsAfter = frame.next_after ?? null;` — any non-null value, whatever its type, becomes the cursor, and lines 286–293 send it back verbatim as `after` in the next `records` request.\n\nReproduction (probe on the laptop, `~/git/fleet/probe-records-ws-frame-20261108`,\nreal `world.ts` driven through the same FakeWebSocket harness as\n`world-records.test.ts`; probe copy byte-identical to main, 6/6 tests pass —\nthe BUG cases assert the current wrong behavior):\n\n- Control: `{type:\"records\", records:{a1:1}, next_after:null}` renders `{a1: 1}` and terminates the fetch. ✔\n- `records: \"abc\"` → renders `{\"0\":\"a\",\"1\":\"b\",\"2\":\"c\"}` — per-character junk presented as world records.\n- `records: [10, 20]` → renders `{\"0\":10,\"1\":20}`.\n- `records: 42` → the fetch silently completes rendering `{}` — the world's records look empty.\n- `next_after: 123` → the client sends the follow-up page request with `after: 123` (a number, not a string).\n- `next_after: {k: 1}` → the client sends `after: {\"k\": 1}` verbatim.\n\nExisting tests do not cover this: `pkgs/id/web/src/world-records.test.ts`\ncovers the #1458 pagination coalescing and the #2953 `__proto__`\ndefine-semantics, but every delivered frame has a well-shaped `records`\nobject and a string/null `next_after`. The baseline suite is green\n(6/6 in the probe).\n\n## Why it matters\n\nThe records panel is how a participant reads the world's published\nstate. A single wrong-shape frame currently (a) fabricates records that\ndo not exist (per-character/per-index entries), (b) silently reports an\nempty world for scalar payloads, and (c) corrupts the pagination\nprotocol by echoing a non-string cursor the server never issued —\nagainst a server that treats an unknown cursor as a first page, that\nalso re-merges page one and can keep the fetch alive past the page the\nserver meant to end it on. The snapshot/event cases in the same switch\nalready show the house pattern: validate, and `rejectFrame()` on a\nmismatch instead of rendering it.\n\nRelated but distinct: #7833 covers the **REST** `/api/world/host-view`\npath in the same file (`refreshHostView`, a different function and\ntransport); this issue is the session-WebSocket `records` frame in\n`receive()`. A fixer may reasonably handle both in one pass. The\nRust-side cursor-shape fixes (#6615, #6778, #6600) and open #6578 cover\nserver-side readers, not this browser handler.\n\n## Acceptance criteria\n\n- [ ] A `records` frame whose `records` is not a plain object (string, array, number, boolean) is rejected (e.g. via the existing `rejectFrame()` path) and does not change the rendered records or the fetch state.\n- [ ] A `records` frame whose `next_after` is neither a string nor null/undefined is rejected the same way; a non-string cursor is never sent back to the server as `after`.\n- [ ] Well-formed frames behave exactly as today: the #1458 coalescing/refetch behavior and the #2953 define-semantics key handling in `world-records.test.ts` stay green.\n- [ ] New tests in `world-records.test.ts` (or a sibling suite) deliver string/array/numeric `records` and numeric/object `next_after` frames and pin the rejection.\n","author":{"url":"https://github.com/apps/developing-today","@type":"Person","name":"developing-today"},"datePublished":"2026-11-09T01:58:17Z","url":"https://github.com/developing-today/code/issues/7908"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:219d17b0-23b0-852c-9966-3a678516f844
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id974A:312DDC:3348E:4424B:6B0757C9
html-safe-nonce0eb7788651d124a726d7944500321515c8afc5272c83fbece3e111136611b002
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzRBOjMxMkREQzozMzQ4RTo0NDI0Qjo2QjA3NTdDOSIsInZpc2l0b3JfaWQiOiIyOTkyNzUyNzUxNDU0NjcyODQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac29e84bae151e18c6f637997e8fd8eeaa0a1a25a50f85bda3b265100e1caeaa2d
hovercard-subject-tagissue:6278466877
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7908/issue_layout
twitter:imagehttps://opengraph.githubassets.com/268b00d884fa208ebe7cd0b775ebad57cce5e52710d65cf28d99a79cdc3a4fe5/developing-today/code/issues/7908
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/268b00d884fa208ebe7cd0b775ebad57cce5e52710d65cf28d99a79cdc3a4fe5/developing-today/code/issues/7908
og:image:altid(web/world): session-WS records frame is shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor Summary On the world page,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedeveloping-today[bot]
hostnamegithub.com
expected-hostnamegithub.com
Nonee8a742cfa7d479a227a6a6e03ec8d1b3f77f746d4752d7d11136b478718b9658
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7bda31a5f68d83542e3adebba328d48747c5f604
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/7908#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F7908
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F7908
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/7908
Reloadhttps://github.com/developing-today/code/issues/7908
Reloadhttps://github.com/developing-today/code/issues/7908
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1k (1k)https://github.com/developing-today/code/issues
Pull requests205 (205)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7908
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7908
#8649https://github.com/developing-today/code/pull/8649
id(web/world): session-WS records frame shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursorhttps://github.com/developing-today/code/issues/7908#top
#8649https://github.com/developing-today/code/pull/8649
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%22
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Nov 9, 2026https://github.com/developing-today/code/issues/7908#issue-6278466877
1f5ac11https://github.com/developing-today/code/commit/1f5ac112763fea77a626966853581bd684aea572
#1458https://github.com/developing-today/code/issues/1458
#2953https://github.com/developing-today/code/issues/2953
#7833https://github.com/developing-today/code/issues/7833
#6615https://github.com/developing-today/code/issues/6615
#6778https://github.com/developing-today/code/issues/6778
#6600https://github.com/developing-today/code/issues/6600
#6578https://github.com/developing-today/code/issues/6578
id(web): world records view shows a lone stale page when an input event restarts a paginated fetch — fresh pages are silently discarded #1458https://github.com/developing-today/code/issues/1458
Design: define, don't assign — untrusted keys are stored with define semantics, never through the __proto__ setter #2953https://github.com/developing-today/code/issues/2953
developing-todayhttps://github.com/apps/developing-today
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
on Nov 9, 2026https://github.com/developing-today/code/issues/7908#event-35526966611
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Nov 9, 2026https://github.com/developing-today/code/issues/7908#issuecomment-6730429538
developing.todayhttps://kaneo.security.cab
1f5ac11https://github.com/developing-today/code/commit/1f5ac112763fea77a626966853581bd684aea572
id(web/world): /api/world/host-view and /api/world/invite responses shape-trusted — a wrong-shape 200 shows raw TypeErrors, renders bogus per-character records, or persists a fake 'undefined' invite capability #7833https://github.com/developing-today/code/issues/7833
dezren39https://github.com/dezren39
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 11, 2026https://github.com/developing-today/code/issues/7908#event-35758593245
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 11, 2026https://github.com/developing-today/code/issues/7908#issuecomment-6786480958
#7908https://github.com/developing-today/code/issues/7908
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 11, 2026https://github.com/developing-today/code/issues/7908#issuecomment-6786533617
#7908https://github.com/developing-today/code/issues/7908
#8510https://github.com/developing-today/code/pull/8510
#8510https://github.com/developing-today/code/pull/8510
dezren39https://github.com/dezren39
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
on Nov 11, 2026https://github.com/developing-today/code/issues/7908#event-35759094283
dezren39https://github.com/dezren39
on Nov 11, 2026https://github.com/developing-today/code/issues/7908#event-35789906247
Merge pull request #8649 from developing-today/queue/14271-7908-world…https://github.com/developing-today/code/commit/725d0a68483dd2a02bc1511452d862d6ab35a291
#8649https://github.com/developing-today/code/pull/8649
725d0a6https://github.com/developing-today/code/commit/725d0a68483dd2a02bc1511452d862d6ab35a291
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8649https://github.com/developing-today/code/pull/8649
on Nov 11, 2026https://github.com/developing-today/code/issues/7908#event-35789908304
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 11, 2026https://github.com/developing-today/code/issues/7908#issuecomment-6794166129
#8649https://github.com/developing-today/code/pull/8649
fix(id/web): reject wrong-shape session-WS records frames (#7908) #8649https://github.com/developing-today/code/pull/8649
725d0a6https://github.com/developing-today/code/commit/725d0a68483dd2a02bc1511452d862d6ab35a291
id(web): world records view shows a lone stale page when an input event restarts a paginated fetch — fresh pages are silently discarded #1458https://github.com/developing-today/code/issues/1458
Design: define, don't assign — untrusted keys are stored with define semantics, never through the __proto__ setter #2953https://github.com/developing-today/code/issues/2953
fix(id/web): reject wrong-shape session-WS records frames (#7908) #8649https://github.com/developing-today/code/pull/8649
id(web/world): session-WS records frame shape-trusted — a string records renders per-character entries, a non-string next_after is echoed back as the pagination cursor #7908https://github.com/developing-today/code/issues/7908
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
on Nov 11, 2026https://github.com/developing-today/code/issues/7908#event-35789967678
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/7908
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7908
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.