Skip to content
Merged
Show file tree
Hide file tree
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 Oct 29, 2026
153b8b6
style(gateway): clippy clean — desugar impl-Future wrappers to async fn
ztelur Oct 29, 2026
9ffe018
docs(gateway): document features and the PC UDS call sequence
ztelur Oct 29, 2026
0572eca
fix(gateway): harden gate semantics from code review
ztelur Oct 29, 2026
4930845
chore(gateway): add Apache-2.0 license headers to all source files
ztelur Oct 30, 2026
b87c096
fix(gateway): never retry requests already handed to the upstream
ztelur Oct 30, 2026
5a89508
fix(gateway): disable automatic upstream redirects
ztelur Oct 30, 2026
4faa44b
fix(gateway): preserve Chat tool-call metadata through canonicalization
ztelur Oct 30, 2026
9c4a129
fix(gateway): keep Responses text content in a valid wire shape
ztelur Oct 30, 2026
301d54e
fix(gateway): apply the response buffer limit to nonstreaming calls
ztelur Oct 30, 2026
007aa23
style(gateway): drop narrative comment at the redirect policy
ztelur Oct 31, 2026
a0b9cb0
fix(gateway): enforce the configured body limit on chunked requests
ztelur Oct 31, 2026
88c0dc4
chore: remove accidentally committed stale gateway copy
ztelur Oct 31, 2026
26d944e
ci(gateway): build, lint, and test the Rust workspace
ztelur Oct 31, 2026
ec87119
ci(gateway): adopt the post-#2285 ci-paths structure
ztelur Oct 31, 2026
bde6925
fix(gateway): enforce admission validity and safe degradation (P1-3, …
ztelur Nov 1, 2026
2c6d7e5
fix(gateway): CI checks entry, fail-closed valid_until, capture re-ch…
ztelur Nov 1, 2026
4788f27
ci: adopt current master ci-paths.toml with gateway entries
ztelur Nov 1, 2026
2f1327d
fix(gateway): preserve supported Chat request controls through rendering
ztelur Nov 1, 2026
7f2bcf2
Merge branch 'master' into feat/rust-gateway
ztelur Nov 1, 2026
edc22e6
fix(gateway): Responses structured output via text field, not respons…
ztelur Nov 1, 2026
7e0c353
test(gateway): probe tests for unparseable valid_until and capture-ex…
ztelur Nov 1, 2026
d4b657f
fix(gateway): apply the configured body limit to the proxy path
ztelur Nov 1, 2026
0268866
fix(gateway): preserve Responses store field and restrict reuse to me…
ztelur Nov 1, 2026
e59f16c
test(gateway): probe tests for store field and memory-only assembly
ztelur Nov 1, 2026
841abac
fix(gateway): hold concurrency permit for streaming responses; valida…
ztelur Nov 2, 2026
c5262d9
test(gateway): probe tests for malformed allow validation
ztelur Nov 2, 2026
93519d9
fix(gateway): route destination safety, rejection semantics, data pro…
ztelur Nov 2, 2026
6406eaf
fix(gateway): preserve token limits, validate contract versions, conf…
ztelur Nov 2, 2026
1e8c12a
fix(gateway): preserve typed user text in recall query and transcript
ztelur Nov 2, 2026
065ed24
fix(gateway): cumulative UDS budget, earliest SSE separator, token-li…
ztelur Nov 2, 2026
2e839cb
ci(gateway): align gateway workflow with the master orchestrator pattern
ztelur Nov 2, 2026
6a42753
fix(gateway): workflow permissions, typed-content injection, UDS budg…
ztelur Nov 2, 2026
d05f4e6
fix(gateway): token_limit_field conditionally set in Chat ingress; en…
ztelur Nov 2, 2026
92dafe8
fix(gateway): preserve non-text parts when injecting into typed content
ztelur Nov 2, 2026
c2919d6
fix(gateway): single-injection for multi-text parts, typed pointer, U…
ztelur Nov 2, 2026
4e55672
fix(gateway): cumulative UDS chunk budget before reading chunk data
ztelur Nov 2, 2026
6075cc6
fix(gateway): capture and pass through the Responses conversation par…
ztelur Nov 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/ci-paths.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ ignore = [
]

[suites]

gateway = ["gateway/**", ".github/workflows/gateway.yml"]

helm = ["deploy/helm/**", "tests/test_helm*.py", "tests/e2e/helm_*.py"]
tests = [
"tests/**", "integrations/**", "examples/**", "scripts/generate_js_operations.py",
Expand Down Expand Up @@ -200,3 +203,4 @@ candidate_replay = ["candidate-replay"]
release_schema = ["release-schema"]
seekdb_lock = ["seekdb-lock"]
skill_guidance = ["skill-guidance"]
gateway = ["gateway-validation"]
50 changes: 50 additions & 0 deletions .github/workflows/gateway.yml
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

Copy link
Copy Markdown
Contributor

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.suites is empty, so changes calls ci-changes.yml, which requires actions: read. This caller grants only contents: read; unspecified permissions become none, and nested workflows cannot elevate them. The manual Gateway entry point therefore cannot supply the child workflow's required permission. Grant actions: read at 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.

Copy link
Copy Markdown
Contributor Author

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 嵌套调用的权限要求

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
11 changes: 11 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,16 @@ jobs:
with:
suites: ${{ needs.quality.outputs.suites }}

gateway-validation:
needs: [quality, tests]
if: >-
${{ !cancelled() && needs.quality.result == 'success' &&
contains(fromJSON('["success","skipped"]'), needs.tests.result) &&
(fromJSON(needs.quality.outputs.suites || '{}').gateway) }}
uses: ./.github/workflows/gateway.yml
with:
suites: ${{ needs.quality.outputs.suites }}

desktop-validation:
needs: [quality, tests]
if: >-
Expand Down Expand Up @@ -1240,6 +1250,7 @@ jobs:
- website-link-validation-windows
- check-website
- harness-validation
- gateway-validation
- desktop-validation
- managed-resource-candidates
- helm
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,4 @@ integrations/pi/plugins/powercontext/*.tgz

# pnpm package store is a local cache, never committed.
.pnpm-store/
powercontext/gateway/
2 changes: 2 additions & 0 deletions gateway/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
.DS_Store
Loading
Loading