# Enterprise pull request query proof

Target [#20531](https://github.com/pingdotgg/t3code/pull/20531), validated at [4bdb33d3e1](https://github.com/pingdotgg/t3code/commit/4bdb33d3e1e68df58436c3afdc606b53285ffb84).

The actual adapter HTTP mock captured generated requests, including their complete documents and variables. GraphQL.js checked those requests against the official [GHES 3.18 schema](https://docs.github.com/public/ghes-3.18/schema.docs-enterprise.graphql) and [GHES 3.22 schema](https://docs.github.com/public/ghes-3.22/schema.docs-enterprise.graphql).

| Operation | Before | After |
| --- | --- | --- |
| Enterprise list search | Missing stack and stackEntry fields rejected | Valid on both schemas |
| Enterprise repository fallback | Same rejection | Valid on both schemas |
| Enterprise linked summary | Same rejection | Valid on both schemas |
| Enterprise direct search | Same search document rejected | Valid on both schemas |
| github.com search and two-summary batch | Stack values in existing reads | Both documents valid against vendored public schema; membership and batching preserved by tests |

All eight Enterprise document/variable checks passed. Both github.com documents passed schema validation. The three pre-fix documents failed both Enterprise schemas with the expected two unsupported-field errors. The Enterprise regression tests also fail when the fix is disabled.

Test cleanup reduced 243 cases to 242 in two existing files, preserving the 240 baseline cases. The full focused selection passes 281 cases across four existing files. Scoped GitHub/server typechecks, targeted lint and formatting, and generated-query consistency pass.

This is schema and adapter proof, not a live GHES account test. An authenticated github.com attempt was blocked by the shared GraphQL rate limit and produced no successful live evidence. Non-null stack membership remains deterministic test coverage. No visual behavior changed. macOS, Windows, Electron, iOS, and Android were not exercised.

Tests: Codex gpt-6-astra. Implementation: Codex gpt-6.1-sol. Harness: T3 Code.
