Repository navigation
feat(gateway): enable steering and memory defaults - #2774
Merged
hidb4ai merged 2 commits intoNov 23, 2026
Merged
Conversation
frf12
requested review from
AlexStocks,
PsiACE,
frostming and
zhanghuidinah
as code owners
November 22, 2026 15:35
hidb4ai
requested changes
Nov 22, 2026
hidb4ai
left a comment
Contributor
There was a problem hiding this comment.
The new bundled text currently blocks CI preflight; please fix the license-check handling before merging. See the inline finding.
hidb4ai
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
Related: #2411, #2413, #2729; Gateway RFC 2199.
Rationale for this change
Gateway deployments currently need separate opt-ins for steering, cached-prefix extraction, and one-pass memory processing. Enable these existing features by default where supported, with explicit overrides to retain the previous behavior.
What changes are included in this PR?
PC_GATEWAY_STEERING_FILEreplaces it;PC_GATEWAY_STEERING=offdisables steering without reading a configured file. Chat requests are unchanged. A file-specific License Eye exclusion preserves the prompt bytes.PC_GATEWAY_PREFIX_EXTRACTION=offdisables it. Preserve the existing subscription boundary: Codex requires Core to be confirmed as non-enforcing; other subscriptions remain unsupported. Source capture still requiresPC_GATEWAY_SEDIMENT=on.inference.prefix_extraction_gateway_urlis configured and no processing mode was supplied, default Atomic Memory toone_pass. Preserve explicit modes, configuration precedence, and the SDK/non-Gatewayper_candidatedefault.Are there any user-facing changes?
Responses requests include the bundled guidance unless disabled or replaced. The steering and prefix switches accept only
onoroffwhen set; invalid values fail startup. SetPOWERCONTEXT_SERVER_RUNTIME_ATOMIC_MEMORY_PROCESSING_MODE=per_candidateto retain per-candidate processing on a Server configured with the Gateway callback.The callback URL and generation model must still be configured on Core. No HTTP API or persisted-format changes, deployments, or paid benchmark reruns are included.
How was this change tested?
make check: passed, including pre-commit checks, both type-check targets and integration manifest tests.make docs-test: passed, including the static build and verification of 1,132 public pages and their internal links.cargo fmt --manifest-path gateway/Cargo.toml --all --checkandcargo clippy --locked --manifest-path gateway/Cargo.toml -p pc-gateway-app --all-targets -- -D warningspassed.95d25ce0bpassed: 54 jobs succeeded and 24 were intentionally skipped. This includes the full Gateway Rust workspace tests, Clippy, protocol compatibility, Python tests, documentation, upgrade, installation, host integration and candidate-package validation. Local macOS terminated the Rust test executable with SIGKILL; the CI run provides the completed automated Rust execution result.Local verification does not establish provider cache-hit rates or subscription costs.
AI usage statement
OpenAI Codex assisted with implementation, tests, documentation, and independent code review.