Title: follow-up(#3068 Phase 3 audit): parse-boundary shape checks the phases missed (sync-models, id/web, dispatch, projector, atlas-search, cold-store-reaper, mcpx, exporters, claimant) · Issue #7983 · developing-today/code · GitHub
Open Graph Title: follow-up(#3068 Phase 3 audit): parse-boundary shape checks the phases missed (sync-models, id/web, dispatch, projector, atlas-search, cold-store-reaper, mcpx, exporters, claimant) · Issue #7983 · developing-today/code
X Title: follow-up(#3068 Phase 3 audit): parse-boundary shape checks the phases missed (sync-models, id/web, dispatch, projector, atlas-search, cold-store-reaper, mcpx, exporters, claimant) · Issue #7983 · developing-today/code
Description: Follow-up from the #3068 Phase 3 closing audit (evidence: doc/2026-11-09_audit_3068-phase3-closing.md, on PR for #3069). The audit inventoried every parse-then-dereference boundary in bin/, scripts/, pkgs/, and pm-stack's non-aggregator ...
Open Graph Description: Follow-up from the #3068 Phase 3 closing audit (evidence: doc/2026-11-09_audit_3068-phase3-closing.md, on PR for #3069). The audit inventoried every parse-then-dereference boundary in bin/, scripts...
X Description: Follow-up from the #3068 Phase 3 closing audit (evidence: doc/2026-11-09_audit_3068-phase3-closing.md, on PR for #3069). The audit inventoried every parse-then-dereference boundary in bin/, scripts...
Opengraph URL: https://github.com/developing-today/code/issues/7983
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"follow-up(#3068 Phase 3 audit): parse-boundary shape checks the phases missed (sync-models, id/web, dispatch, projector, atlas-search, cold-store-reaper, mcpx, exporters, claimant)","articleBody":"Follow-up from the #3068 Phase 3 closing audit (evidence: doc/2026-11-09_audit_3068-phase3-closing.md, on PR for #3069). The audit inventoried every parse-then-dereference boundary in bin/, scripts/, pkgs/, and pm-stack's non-aggregator handlers. The sites below are boundaries the #3068 phases missed and the same rule covers — validate the shape you deref, at the boundary, before any side effect; absence is not emptiness. Each item is its own small fix; do them as separate small PRs, in roughly this risk order:\n\n1. bin/sync-models.mjs:127 — models.dev response read as `(await res.json()).response?.models || {}`: absence-as-emptiness (corollary 3). A shape drift reads as \"zero models\" instead of an error.\n2. pkgs/id/web response casts: src/main.ts (8 .json() sites, several `as {…}` casts), src/world.ts:433,566, src/home.ts:105 — first-party server responses dereferenced by cast with no shape parser (contrast image-browser.ts / image-upload.ts in the same package, which use named parsers — the compliant pattern).\n3. pm-stack/dispatch: src/github.ts casts ({id}, {token, expires_at}, {number, html_url}), src/queue.ts:119,136 TaskRow[] casts, src/auth.ts:109 response deref.\n4. pm-stack/projector/src/github.ts:191 — generic helper returns `(await res.json()) as T` (contrast its own unknown-first sites in the same file); src/server.ts:252,346 inbound req.json() bodies.\n5. pkgs/atlas-search/worker: inbound casts src/index.ts:75, src/cache_do.ts:82; response casts src/index.ts:92,113.\n6. pkgs/cold-store-reaper/worker/src/index.js:108 inbound request.json() job deref; :159 resp.json() payload (dist/worker.js is the built copy).\n7. pkgs/mcpx/plugin/opencode/mcpx/daemon.ts:463,476,537 — `(await res.json()) as T` / `as Resolution` on daemon responses.\n8. bin/codedb-bridge.mjs:250 response parse raced then dereferenced; bin/provider-catalog-sync.mjs:525 res.json() returned to dereferencing callers.\n9. Exporter scripts returning API responses unvalidated to dereferencing callers: pm-stack/meta-exporter (:195, :330), pm-stack/supabase-export, pm-stack/opencode-usage-export. (cloudflare-export's GraphQL errors shape is excluded — already fixed under #2608.)\n10. pm-stack/opencode-claimant (claimant.py, poll.py): queue-broker responses parsed and acted on (session launches) without a shape check. Loopback, token-authed, first-party — lowest risk in this list, same rule.\n\nAcceptance: each numbered item either lands a boundary shape check in the surface's own error vocabulary, or is dispositioned on this issue with the one-line reason it is not a trust boundary. Reference the probe matrix from the contract statement (aggregator README, \"Parsed-shape contract (#3068)\"): null, array, scalar, {}, each relied-on field wrong-typed.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-09T06:04:30Z","url":"https://github.com/developing-today/code/issues/7983"}
| 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:6f7486ef-6ffa-1e2c-15cf-80dd12139785 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2DA:1F59:182A370:2067116:6B06CB3E |
| html-safe-nonce | 703f1eb6d95881ddf0a8f3823168a3ce5446c42c382b0ee576af51c7475d0491 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkRBOjFGNTk6MTgyQTM3MDoyMDY3MTE2OjZCMDZDQjNFIiwidmlzaXRvcl9pZCI6IjY3OTEzODQzNDUzMDQ1NTAyMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3475cda19e419b27a868c04f1ad0f54cf7f1930062aef33fabce6f12d1e5460b |
| hovercard-subject-tag | issue:6280895570 |
| 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/7983/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77da20d64a12ebf1d31184fec4c6cf89d0f0b2bdd76ae46aa3f49c918954a62e/developing-today/code/issues/7983 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77da20d64a12ebf1d31184fec4c6cf89d0f0b2bdd76ae46aa3f49c918954a62e/developing-today/code/issues/7983 |
| og:image:alt | Follow-up from the #3068 Phase 3 closing audit (evidence: doc/2026-11-09_audit_3068-phase3-closing.md, on PR for #3069). The audit inventoried every parse-then-dereference boundary in bin/, scripts... |
| 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 | 48c0c26c41d13804b7e7b64ecbf80b4fd26c9800284c33d08e6f6b91b04942a7 |
| 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 | dfa05458654b5673dad37bef211b8605ec01b7e3 |
| 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