Title: Proposal: update experimental defer support to the newer incremental delivery draft · Issue #4497 · graphql-java/graphql-java · GitHub
Open Graph Title: Proposal: update experimental defer support to the newer incremental delivery draft · Issue #4497 · graphql-java/graphql-java
X Title: Proposal: update experimental defer support to the newer incremental delivery draft · Issue #4497 · graphql-java/graphql-java
Description: I’d like to contribute an update to graphql-java’s experimental @defer support to align it with the newer incremental delivery specification draft. Before submitting PRs, I’d like to check whether there are existing plans or ongoing work...
Open Graph Description: I’d like to contribute an update to graphql-java’s experimental @defer support to align it with the newer incremental delivery specification draft. Before submitting PRs, I’d like to check whether ...
X Description: I’d like to contribute an update to graphql-java’s experimental @defer support to align it with the newer incremental delivery specification draft. Before submitting PRs, I’d like to check whether ...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/4497
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Proposal: update experimental defer support to the newer incremental delivery draft","articleBody":"I’d like to contribute an update to graphql-java’s experimental `@defer` support to align it with the newer [incremental delivery specification draft](https://github.com/graphql/graphql-spec/pull/1110). Before submitting PRs, I’d like to check whether there are existing plans or ongoing work in this area.\n\nThe working prototype is now public in [duckki/graphql-java](https://github.com/duckki/graphql-java). I propose splitting the contribution into four PRs:\n\n1. **Defer support only** ([branch](https://github.com/duckki/graphql-java/tree/incremental-v2-01-defer), [diff](https://github.com/duckki/graphql-java/compare/4c096208b...incremental-v2-01-defer)), behind an opt-in transition option. Preserve the current implementation, keep the new version mostly isolated, and include focused Spock tests for execution, errors, cancellation, DataLoader integration and compatibility.\n2. **Optional differential testing against a Lean oracle** ([branch](https://github.com/duckki/graphql-java/tree/incremental-v2-02-defer-oracle), [diff](https://github.com/duckki/graphql-java/compare/incremental-v2-01-defer...incremental-v2-02-defer-oracle)), with deterministic input generation, saved regression cases, replay and shrinking.\n3. **Stream support** ([branch](https://github.com/duckki/graphql-java/tree/incremental-v2-03-stream), [diff](https://github.com/duckki/graphql-java/compare/incremental-v2-02-defer-oracle...incremental-v2-03-stream)), including validation, backpressure and resource lifecycle tests.\n4. **Expanded fuzzing** ([branch](https://github.com/duckki/graphql-java/tree/incremental-v2-04-fuzz-profiles), [diff](https://github.com/duckki/graphql-java/compare/incremental-v2-03-stream...incremental-v2-04-fuzz-profiles)), covering broader inputs, asynchronous scenarios and coverage profiles.\n\nThe branches are stacked in this order. Each linked diff isolates one stage; the first is based on `4c096208b`, and each later diff is against the preceding branch.\n\nThe design follows a public [Lean model](https://github.com/duckki/graphql-lean/tree/0c0cd04cdf4d05805a9a0510fe341d10889ffa9f) with formal proofs of its documented properties. It includes two work-queue implementations:\n\n- A [GraphQL.js-shaped reference queue](https://github.com/duckki/graphql-lean/blob/0c0cd04cdf4d05805a9a0510fe341d10889ffa9f/GraphQL/IncrementalDelivery/WorkQueueImplementation.lean).\n- An [alternative queue](https://github.com/duckki/graphql-lean/blob/0c0cd04cdf4d05805a9a0510fe341d10889ffa9f/GraphQL/IncrementalDelivery/WorkQueueAlternativeImpl.lean), which the proposed Java implementation follows.\n\nThe model provides a precise reference for execution semantics, while differential testing checks the Java implementation against that reference. My blog post, [Formally Verified GraphQL Incremental Delivery](https://duckki.github.io/2026/10/01/graphql-incremental-delivery-formalized.html), explains the verification work and its scope. The model and [porting guide](https://github.com/duckki/graphql-lean/blob/0c0cd04cdf4d05805a9a0510fe341d10889ffa9f/docs/incremental-delivery/porting-guide.md) are supporting resources; each PR will explain its design and behavior directly in Java terms.\n\nThe first branch’s commits separate response types, collection/planning, scheduling/publication, and integration/compatibility tests. The contribution would add no new dependencies or HTTP transport. The prototype currently targets spec revision [`045e193`](https://github.com/graphql/graphql-spec/tree/045e19363c2b55f127960bd3b5e8072a15b29aec).\n\nAre there existing plans this should coordinate with? Would this staged approach fit the project’s direction? Feedback on the opt-in transition and response API would help shape the first PR.\n","author":{"url":"https://github.com/duckki","@type":"Person","name":"duckki"},"datePublished":"2026-10-14T21:59:03Z","url":"https://github.com/graphql-java/graphql-java/issues/4497"}
| 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:f6c76373-748e-0162-d7ac-8bcf2f075321 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADCA:EA09B:1F9BB2F:29D964B:6B017649 |
| html-safe-nonce | 939db47def5b0feb9503a676255210b2317e4945cdf663095c59bcd4bd1cfad4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRENBOkVBMDlCOjFGOUJCMkY6MjlEOTY0Qjo2QjAxNzY0OSIsInZpc2l0b3JfaWQiOiIzNjcwODczNjM1ODk3MzA4NzQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 35b18ee8fa8be77dcb404fa8251b0fed9bd0f999aab4e7f94d8956282247bbce |
| hovercard-subject-tag | issue:5856380963 |
| 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/graphql-java/graphql-java/4497/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1aba7de75361bef9c78e32d8d3ac7c9488d93f8d442502a19e937059ba2e83a3/graphql-java/graphql-java/issues/4497 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1aba7de75361bef9c78e32d8d3ac7c9488d93f8d442502a19e937059ba2e83a3/graphql-java/graphql-java/issues/4497 |
| og:image:alt | I’d like to contribute an update to graphql-java’s experimental @defer support to align it with the newer incremental delivery specification draft. Before submitting PRs, I’d like to check whether ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | duckki |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width