Repository navigation
feat(gateway): add Rust PowerContext Gateway executor #2307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
402983b
feat(gateway): add Rust PowerContext Gateway executor
ztelur 153b8b6
style(gateway): clippy clean — desugar impl-Future wrappers to async fn
ztelur 9ffe018
docs(gateway): document features and the PC UDS call sequence
ztelur 0572eca
fix(gateway): harden gate semantics from code review
ztelur 4930845
chore(gateway): add Apache-2.0 license headers to all source files
ztelur b87c096
fix(gateway): never retry requests already handed to the upstream
ztelur 5a89508
fix(gateway): disable automatic upstream redirects
ztelur 4faa44b
fix(gateway): preserve Chat tool-call metadata through canonicalization
ztelur 9c4a129
fix(gateway): keep Responses text content in a valid wire shape
ztelur 301d54e
fix(gateway): apply the response buffer limit to nonstreaming calls
ztelur 007aa23
style(gateway): drop narrative comment at the redirect policy
ztelur a0b9cb0
fix(gateway): enforce the configured body limit on chunked requests
ztelur 88c0dc4
chore: remove accidentally committed stale gateway copy
ztelur 26d944e
ci(gateway): build, lint, and test the Rust workspace
ztelur ec87119
ci(gateway): adopt the post-#2285 ci-paths structure
ztelur bde6925
fix(gateway): enforce admission validity and safe degradation (P1-3, …
ztelur 2c6d7e5
fix(gateway): CI checks entry, fail-closed valid_until, capture re-ch…
ztelur 4788f27
ci: adopt current master ci-paths.toml with gateway entries
ztelur 2f1327d
fix(gateway): preserve supported Chat request controls through rendering
ztelur 7f2bcf2
Merge branch 'master' into feat/rust-gateway
ztelur edc22e6
fix(gateway): Responses structured output via text field, not respons…
ztelur 7e0c353
test(gateway): probe tests for unparseable valid_until and capture-ex…
ztelur d4b657f
fix(gateway): apply the configured body limit to the proxy path
ztelur 0268866
fix(gateway): preserve Responses store field and restrict reuse to me…
ztelur e59f16c
test(gateway): probe tests for store field and memory-only assembly
ztelur 841abac
fix(gateway): hold concurrency permit for streaming responses; valida…
ztelur c5262d9
test(gateway): probe tests for malformed allow validation
ztelur 93519d9
fix(gateway): route destination safety, rejection semantics, data pro…
ztelur 6406eaf
fix(gateway): preserve token limits, validate contract versions, conf…
ztelur 1e8c12a
fix(gateway): preserve typed user text in recall query and transcript
ztelur 065ed24
fix(gateway): cumulative UDS budget, earliest SSE separator, token-li…
ztelur 2e839cb
ci(gateway): align gateway workflow with the master orchestrator pattern
ztelur 6a42753
fix(gateway): workflow permissions, typed-content injection, UDS budg…
ztelur d05f4e6
fix(gateway): token_limit_field conditionally set in Chat ingress; en…
ztelur 92dafe8
fix(gateway): preserve non-text parts when injecting into typed content
ztelur c2919d6
fix(gateway): single-injection for multi-text parts, typed pointer, U…
ztelur 4e55672
fix(gateway): cumulative UDS chunk budget before reading chunk data
ztelur 6075cc6
fix(gateway): capture and pass through the Responses conversation par…
ztelur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Gateway | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| suites: | ||
| description: Scope already selected by the Main orchestrator | ||
| required: true | ||
| type: string | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| actions: read | ||
|
|
||
| concurrency: | ||
| group: gateway-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| changes: | ||
| if: ${{ inputs.suites == '' }} | ||
| uses: ./.github/workflows/ci-changes.yml | ||
| with: | ||
| baseline-workflow: gateway.yml | ||
|
|
||
| check: | ||
| needs: changes | ||
| if: >- | ||
| ${{ !cancelled() && | ||
| ((inputs.suites == '' && needs.changes.result != 'success') || fromJSON(inputs.suites || needs.changes.outputs.suites || '{}').gateway) }} | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Install pinned Rust toolchain | ||
| run: rustup toolchain install 1.95.0-x86_64-unknown-linux-gnu --profile minimal --component rustfmt --component clippy | ||
| - name: Cache Rust dependencies and compilation | ||
| uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 | ||
| with: | ||
| workspaces: gateway -> target | ||
| cache-bin: false | ||
| - name: Format check | ||
| run: cargo fmt --manifest-path gateway/Cargo.toml --all --check | ||
| - name: Clippy | ||
| run: cargo clippy --locked --manifest-path gateway/Cargo.toml --all-targets -- -D warnings | ||
| - name: Tests | ||
| run: cargo test --locked --manifest-path gateway/Cargo.toml --workspace | ||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| target/ | ||
| .DS_Store |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P2] Grant the permission required by the nested scope workflow
On
workflow_dispatch,inputs.suitesis empty, sochangescallsci-changes.yml, which requiresactions: read. This caller grants onlycontents: read; unspecified permissions becomenone, and nested workflows cannot elevate them. The manual Gateway entry point therefore cannot supply the child workflow's required permission. Grantactions: readat the calling boundary. This is a source-level contract mismatch; the current GitHub run is awaiting approval, so I am not reporting an observed runner failure.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gateway.yml 的 permissions 从仅 contents: read 改为同时包含 actions: read,满足 ci-changes.yml 嵌套调用的权限要求