Skip to content
Open
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0a25fb6
feat(search): add experimental Rust lexical analyzer pilot
AlexStocks Nov 20, 2026
b20f578
fix(ci): bound end-to-end pytest worker fan-out
AlexStocks Nov 20, 2026
51116a2
fix(ci): bound unit workers and document pilot review limits
AlexStocks Nov 20, 2026
51db1fa
fix(rust): align lexical pilot with gateway toolchain
AlexStocks Nov 20, 2026
9b2b190
refactor(evaluation): group lexical pilot by responsibility
AlexStocks Nov 21, 2026
e5f7c86
feat(search): replace default lexical projection with Rust
AlexStocks Nov 21, 2026
e6fa8a2
fix(build): refresh dependent project lock metadata
AlexStocks Nov 21, 2026
3d815d6
fix(lexical): preserve accepted release artifacts and offline builds
AlexStocks Nov 21, 2026
b1bb10e
merge: sync master CI shards and preserve native lexical gates
AlexStocks Nov 21, 2026
111209d
fix(docs): link the Deep Agents adapter to the LangChain scope anchor
AlexStocks Nov 22, 2026
641ca65
fix(ci): resolve the native wheel in gates that still assume a pure w…
AlexStocks Nov 22, 2026
b612553
fix(tests): isolate blocked recheck probe deadline
AlexStocks Nov 22, 2026
a774fd0
fix(harness): install native SDK wheels in Bub task containers
AlexStocks Nov 22, 2026
24378a7
Merge upstream master into codex/rust-lexical-pilot
AlexStocks Nov 22, 2026
3cc8d7d
fix(ci): reuse pinned Rust and prepare isolated acceptance dependencies
AlexStocks Nov 23, 2026
2e4f2d9
Merge upstream master into codex/rust-lexical-pilot
AlexStocks Nov 23, 2026
8de7262
fix(ci): align Codex caches and stabilize acceptance setup
AlexStocks Nov 23, 2026
90e60b5
Merge remote-tracking branch 'origin/master' into codex/rust-lexical-…
AlexStocks Nov 23, 2026
ffd86a5
fix(ci): merge upstream release pipelines
AlexStocks Nov 24, 2026
1e12be1
fix(build): keep harness wheels and release steps portable
AlexStocks Nov 25, 2026
b1b77d6
fix(lexical): harden native package installation and delivery
AlexStocks Nov 25, 2026
b0a7643
fix(lexical): make dependency notice checks platform independent
AlexStocks Nov 25, 2026
b02bd47
chore(rust): align project toolchains on 1.97.1
AlexStocks Nov 25, 2026
cda923b
Merge remote-tracking branch 'origin/master' into codex/rust-lexical-…
AlexStocks Nov 27, 2026
01053c1
fix(lexical): keep candidate notices within Windows path budget
AlexStocks Nov 27, 2026
8bebd57
docs(integrations): note native toolchain for source installs
AlexStocks Nov 27, 2026
ccae766
fix(gateway): make process test startup ownership-safe
AlexStocks Nov 27, 2026
fc2aadb
Merge remote-tracking branch 'origin/master' into codex/rust-lexical-…
AlexStocks Nov 28, 2026
13f7f34
fix(release): refresh persistence review after master merge
AlexStocks Nov 28, 2026
1c86b18
Merge origin/master into codex/rust-lexical-pilot
AlexStocks Dec 1, 2026
adda69b
fix(lexical): adopt Unicode library analyzer contract
AlexStocks Dec 1, 2026
e6deff6
Merge remote-tracking branch 'origin/master' into codex/pr2735-confli…
AlexStocks Dec 1, 2026
1490d09
Merge remote-tracking branch 'origin/master' into codex/pr2735-confli…
AlexStocks Dec 2, 2026
a0a3573
ci(native-wheels): route Linux jobs through the internal runner policy
AlexStocks Dec 2, 2026
bdad24f
fix(migrations): reproject search projections for the native analyzer
AlexStocks Dec 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
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ tests

# Generated reference-stack credentials and evidence stay outside build contexts.
deploy/observability/.local

# Native compilation outputs are rebuilt inside the builder stage.
**/target
.artifacts
*.pyd
*.so
*.dll
26 changes: 26 additions & 0 deletions .github/actions/setup-python-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ inputs:
default: |
pyproject.toml
uv.lock
scripts/build_lexical.py
src/powercontext/builtin/artifacts/lexical/Cargo.toml
src/powercontext/builtin/artifacts/lexical/Cargo.lock
src/powercontext/builtin/artifacts/lexical/build.rs
src/powercontext/builtin/artifacts/lexical/pyproject.toml
src/powercontext/builtin/artifacts/lexical/src/*.rs
src/powercontext/builtin/artifacts/lexical/data/*.json
integrations/langchain/pyproject.toml
integrations/langgraph/pyproject.toml
integrations/opendal/pyproject.toml
Expand Down Expand Up @@ -107,6 +114,25 @@ runs:
RUNS_ON_S3_FORCE_PATH_STYLE: 'true'
RUNS_ON_RUNNER_NAME: ''

- name: Set up native analyzer toolchain
shell: bash
run: |
toolchain=1.97.1
if [ "$RUNNER_OS" = "Windows" ]; then
toolchain=1.97.1-x86_64-pc-windows-msvc
fi
# Reuse the pinned compiler without rechecking the remote channel manifest.
if ! rustup run "$toolchain" rustc --version; then
for attempt in 1 2 3; do
if rustup toolchain install "$toolchain" --profile minimal; then
break
fi
if [ "$attempt" -eq 3 ]; then exit 1; fi
sleep "$((attempt * 5))"
done
fi
echo "RUSTUP_TOOLCHAIN=$toolchain" >> "$GITHUB_ENV"

- name: Install Python dependencies
id: dependencies
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/ci-paths.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ observability = [
"tests/e2e/*observability*", "tests/builtin/runtime/*worker*", "tests/builtin/runtime/*model_usage*",
]
packaging = [
"src/powercontext/builtin/artifacts/lexical/**", "src/powercontext/_lexical.pyi",
"scripts/build_lexical.py", "scripts/ci_verify_native_wheel.py", "scripts/ci_select_release_assets.py",
".github/workflows/native-wheels.yml",
"integrations/langchain/**", "tests/langchain_middleware/test_packaging.py",
"website/public/install.sh", "website/public/install.ps1", ".github/workflows/installation.yml",
"tests/test_installation_contract.py", "tests/native/test_installation.py", "tests/native/test_install_sources.py",
Expand Down Expand Up @@ -286,7 +289,7 @@ zcode = ["zcode-acceptance"]
kimi = ["kimi-acceptance"]
upgrade = ["upgrade-acceptance"]
observability = ["worker-observability"]
packaging = ["isolated-installations", "script-installation"]
packaging = ["isolated-installations", "script-installation", "native-wheel-validation"]
desktop = ["desktop-validation"]
managed_resources = ["managed-resource-candidates"]
candidate_replay = ["candidate-replay"]
Expand Down
46 changes: 46 additions & 0 deletions .github/scripts/portable-upgrade-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env bash
# Copyright (c) 2026 OceanBase.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Build and validate the publishable Linux candidate in the same glibc baseline.
set -euo pipefail

docker run --rm -i \
--user "$(id -u):$(id -g)" \
--env HOME="$RUNNER_TEMP/portable-home" \
--volume "$GITHUB_WORKSPACE:$GITHUB_WORKSPACE" \
--volume "$RUNNER_TEMP:$RUNNER_TEMP" \
--workdir "$GITHUB_WORKSPACE" \
--env GITHUB_WORKSPACE --env RUNNER_TEMP --env UPGRADE_GATE_ROOT \
--env GITHUB_OUTPUT --env GITHUB_SHA --env PC_UPGRADE_SOURCE_SHA --env GITHUB_RUN_ID \
--env GITHUB_ACTOR --env GITHUB_STEP_SUMMARY \
--env RELEASE --env SELECTION --env RELEASE_TAG \
--env PC_CI_PYTHON_INSTALLER --env PC_CI_PYTHON_MIRROR \
--env PYTHONPATH="$UPGRADE_GATE_ROOT/scripts" \
--env CARGO_HOME="$RUNNER_TEMP/portable-cargo" \
--env RUSTUP_HOME="$RUNNER_TEMP/portable-rustup" \
--env UV_CACHE_DIR="$RUNNER_TEMP/portable-uv-cache" \
--env RUSTUP_TOOLCHAIN=1.97.1 \
quay.io/pypa/manylinux_2_28_x86_64 \
bash -euc '
mkdir -p "$HOME"
/opt/python/cp311-cp311/bin/python -m venv "$RUNNER_TEMP/portable-tools"
export PATH="$RUNNER_TEMP/portable-tools/bin:$CARGO_HOME/bin:$PATH"
python -m pip install --disable-pip-version-check uv==0.10.12 packaging==26.3 >&2
if ! rustup run 1.97.1 rustc --version >/dev/null 2>&1; then
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.97.1 >&2
fi
git config --global --add safe.directory "$GITHUB_WORKSPACE"
exec "$@"
' portable-upgrade "$@"
14 changes: 13 additions & 1 deletion .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,22 @@ jobs:
output.write(f"source_ref={os.environ.get('SOURCE_REF') or source_sha}\n")
PY

- name: Check out portable build tooling
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{ github.sha }}
path: .artifact-build-tools
persist-credentials: false
- name: Keep build tooling outside the requested source
run: |
mv .artifact-build-tools "$RUNNER_TEMP/artifact-build-tools"
echo "UPGRADE_GATE_ROOT=$RUNNER_TEMP/artifact-build-tools" >> "$GITHUB_ENV"

- name: Build Python distributions
run: |
mkdir -p build/artifact-input/distributions
python "$PC_CI_PYTHON_INSTALLER" build --out-dir build/artifact-input/distributions
bash "$UPGRADE_GATE_ROOT/.github/scripts/portable-upgrade-build.sh" \
python "$PC_CI_PYTHON_INSTALLER" build --out-dir build/artifact-input/distributions
python "$PC_CI_PYTHON_INSTALLER" run --no-project --with 'twine>=7.0.0' -- twine check build/artifact-input/distributions/*

- name: Export locked runtime dependencies
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/desktop-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- uses: ./.github/actions/setup-uv
with:
version: '0.13.5'
- name: Prepare the native analyzer toolchain
run: rustup run 1.97.1 rustc --version || rustup toolchain install 1.97.1 --profile minimal

- run: python3 scripts/ci_python_mirror.py sync --locked --no-dev --group resource-build --python 3.12
- name: Verify candidate handoff
run: |
Expand Down Expand Up @@ -87,6 +90,8 @@ jobs:
with:
version: '0.13.5'
enable-cache: true
- name: Install pinned Rust target
run: rustup toolchain install "1.97.1-$RUST_TARGET" --profile minimal
- name: Verify exact source and version before building
run: |
uv sync --locked --no-dev --group resource-build --python 3.12 --no-build-package cryptography --no-build-package jieba
Expand Down Expand Up @@ -115,8 +120,6 @@ jobs:
- uses: jdx/mise-action@d5574b52816a478f9d4e6529a3f6ff17a8a36785 # v5.2.8
with:
working_directory: desktop
- name: Install pinned Rust target
run: rustup toolchain install "1.95.0-$RUST_TARGET" --profile minimal
- name: Build the unsigned product configuration
working-directory: desktop
run: |
Expand Down Expand Up @@ -177,6 +180,9 @@ jobs:
with:
name: desktop-candidate-leg-macos-x86_64
path: build/desktop-candidate/macos-x86_64
- name: Prepare the native analyzer toolchain
run: rustup toolchain install 1.97.1 --profile minimal

- name: Validate required targets and freeze manifest
run: |
set -o pipefail
Expand Down
29 changes: 26 additions & 3 deletions .github/workflows/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
with:
working_directory: desktop
- name: Install pinned Windows Rust toolchain
run: rustup toolchain install 1.95.0-x86_64-pc-windows-msvc --profile minimal --component rustfmt --component clippy
run: rustup toolchain install 1.97.1-x86_64-pc-windows-msvc --profile minimal --component rustfmt --component clippy
- name: Cache desktop dependencies
uses: ./.github/actions/cache-pnpm
with:
Expand Down Expand Up @@ -103,6 +103,13 @@ jobs:
cache-dependency-glob: |
pyproject.toml
uv.lock
scripts/build_lexical.py
src/powercontext/builtin/artifacts/lexical/Cargo.toml
src/powercontext/builtin/artifacts/lexical/Cargo.lock
src/powercontext/builtin/artifacts/lexical/build.rs
src/powercontext/builtin/artifacts/lexical/pyproject.toml
src/powercontext/builtin/artifacts/lexical/src/*.rs
src/powercontext/builtin/artifacts/lexical/data/*.json
integrations/langchain/pyproject.toml
integrations/langgraph/pyproject.toml
integrations/opendal/pyproject.toml
Expand Down Expand Up @@ -191,7 +198,7 @@ jobs:
- uses: jdx/mise-action@d5574b52816a478f9d4e6529a3f6ff17a8a36785 # v5.2.8
with:
working_directory: desktop
- run: rustup toolchain install 1.95.0 --profile minimal --component rustfmt --component clippy
- run: rustup toolchain install 1.97.1 --profile minimal --component rustfmt --component clippy
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: desktop/src-tauri -> target
Expand Down Expand Up @@ -284,7 +291,7 @@ jobs:
with:
working_directory: desktop
- name: Install pinned Linux Rust toolchain
run: rustup toolchain install 1.95.0 --profile minimal --component rustfmt --component clippy
run: rustup toolchain install 1.97.1 --profile minimal --component rustfmt --component clippy
- name: Cache desktop dependencies
uses: ./.github/actions/cache-pnpm
with:
Expand Down Expand Up @@ -324,6 +331,13 @@ jobs:
cache-dependency-glob: |
pyproject.toml
uv.lock
scripts/build_lexical.py
src/powercontext/builtin/artifacts/lexical/Cargo.toml
src/powercontext/builtin/artifacts/lexical/Cargo.lock
src/powercontext/builtin/artifacts/lexical/build.rs
src/powercontext/builtin/artifacts/lexical/pyproject.toml
src/powercontext/builtin/artifacts/lexical/src/*.rs
src/powercontext/builtin/artifacts/lexical/data/*.json
integrations/langchain/pyproject.toml
integrations/langgraph/pyproject.toml
integrations/opendal/pyproject.toml
Expand Down Expand Up @@ -388,10 +402,19 @@ jobs:
cache-dependency-glob: |
pyproject.toml
uv.lock
scripts/build_lexical.py
src/powercontext/builtin/artifacts/lexical/Cargo.toml
src/powercontext/builtin/artifacts/lexical/Cargo.lock
src/powercontext/builtin/artifacts/lexical/build.rs
src/powercontext/builtin/artifacts/lexical/pyproject.toml
src/powercontext/builtin/artifacts/lexical/src/*.rs
src/powercontext/builtin/artifacts/lexical/data/*.json
integrations/langchain/pyproject.toml
integrations/langgraph/pyproject.toml
integrations/opendal/pyproject.toml
integrations/deepagents/pyproject.toml
- name: Prepare the native analyzer toolchain
run: rustup toolchain install 1.97.1-x86_64-pc-windows-msvc --profile minimal
- name: Prepare isolated Server fixture
run: |
uv sync --locked --python 3.12
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/e2e-harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ jobs:
cache-dependency-glob: |
pyproject.toml
uv.lock
scripts/build_lexical.py
src/powercontext/builtin/artifacts/lexical/Cargo.toml
src/powercontext/builtin/artifacts/lexical/Cargo.lock
src/powercontext/builtin/artifacts/lexical/build.rs
src/powercontext/builtin/artifacts/lexical/pyproject.toml
src/powercontext/builtin/artifacts/lexical/src/*.rs
src/powercontext/builtin/artifacts/lexical/data/*.json
integrations/langchain/pyproject.toml
integrations/langgraph/pyproject.toml
integrations/opendal/pyproject.toml
Expand All @@ -125,6 +132,10 @@ jobs:
if: steps.plan.outputs.replay == 'true'
run: python3 scripts/ci_python_mirror.py lock --upgrade --dry-run

- name: Prepare the native analyzer toolchain
if: steps.plan.outputs.replay == 'true'
run: rustup toolchain install 1.97.1 --profile minimal

- name: Install harness validation dependencies
if: steps.plan.outputs.replay == 'true'
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gateway-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
uv run --frozen python -c "import sqlite3; print('Core SQLite:', sqlite3.sqlite_version); assert sqlite3.sqlite_version_info >= (3, 38, 0)"
- name: Install pinned Rust
if: ${{ !inputs.published }}
run: rustup toolchain install 1.95.0 --profile minimal
run: rustup toolchain install 1.97.1 --profile minimal
- name: Install pinned Linux linker tools
if: ${{ runner.os == 'Linux' && !inputs.published }}
run: |
Expand All @@ -107,10 +107,10 @@ jobs:
if: ${{ !inputs.published }}
run: |
if [ "$RUNNER_OS" = Linux ]; then
cargo +1.95.0 zigbuild --locked --manifest-path gateway/Cargo.toml --release \
cargo +1.97.1 zigbuild --locked --manifest-path gateway/Cargo.toml --release \
-p pc-gateway-app --target "$PC_GATEWAY_BUILD_TARGET.$GATEWAY_GLIBC_VERSION"
else
cargo +1.95.0 build --locked --manifest-path gateway/Cargo.toml --release \
cargo +1.97.1 build --locked --manifest-path gateway/Cargo.toml --release \
-p pc-gateway-app --target "$PC_GATEWAY_BUILD_TARGET"
fi
- name: Package executable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
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
run: rustup toolchain install 1.97.1-x86_64-unknown-linux-gnu --profile minimal --component rustfmt --component clippy
- name: Cache Rust dependencies and compilation
id: cargo-cache
uses: ./.github/actions/setup-rust-cache
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,22 @@ jobs:
env:
# Qualify this commit using release-shaped metadata, without publishing it.
SETUPTOOLS_SCM_PRETEND_VERSION: "1.2.0"
run: python3 scripts/ci_python_mirror.py build --wheel --out-dir dist/installation
run: |
python3 scripts/ci_python_mirror.py build --wheel --out-dir dist/installation
# The analyzer makes the wheel platform-specific, so resolve its tag instead of assuming one.
python -c "import pathlib; print('POWERCONTEXT_INSTALL_WHEEL=' + str(next(pathlib.Path('dist/installation').glob('powercontext-1.2.0-*.whl')).resolve()))" >> "$GITHUB_ENV"

- name: Set up the unsupported interpreter for upgrade protection checks
id: unsupported-python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
with:
python-version: '3.15'
update-environment: false

- name: Check shared installer behavior and source resolution
shell: bash
env:
POWERCONTEXT_TEST_PYTHON_315: ${{ steps.unsupported-python.outputs.python-path }}
run: >-
uv run --no-sync pytest -q ${{ runner.os == 'Linux' && '-n auto' || '' }}
tests/test_installation_contract.py tests/native/test_install_sources.py
Expand All @@ -74,7 +86,6 @@ jobs:
- name: Exercise bootstrap, version selection, profiles, and persistent memory
shell: bash
env:
POWERCONTEXT_INSTALL_WHEEL: ${{ github.workspace }}/dist/installation/powercontext-1.2.0-py3-none-any.whl
# Only the version/profile fixture consumes this dependency-index override.
POWERCONTEXT_INSTALL_TEST_INDEX_URL: ${{ matrix.os == 'ubuntu-latest' && 'https://mirrors.aliyun.com/pypi/simple/' || '' }}
run: >-
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/managed-resource-candidates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ jobs:
with:
version: '0.13.5'
enable-cache: true
- name: Prepare the native analyzer toolchain
run: rustup toolchain install 1.97.1 --profile minimal

- name: Install locked build-host checks
run: uv sync --locked --no-dev --group resource-build --python 3.12 --no-build-package cryptography --no-build-package jieba
- name: Verify native source builders are not bootstrapped through Server extras
Expand Down Expand Up @@ -158,9 +161,6 @@ jobs:
libxdo-dev \
openjdk-17-jre-headless \
pkg-config
- name: Install pinned Rust toolchain for native Ops acceptance
if: matrix.target == 'linux-x86_64'
run: rustup toolchain install 1.95.0 --profile minimal
- name: Verify the real Linux Ops bundle through the native trust boundary
if: matrix.target == 'linux-x86_64'
run: |
Expand All @@ -170,7 +170,7 @@ jobs:
{
echo "bundle=$POWERCONTEXT_OPS_TEST_BUNDLE"
echo "bundle_manifest_sha256=$POWERCONTEXT_OPS_TEST_BUNDLE_SHA256"
CARGO_BUILD_JOBS=2 rustup run 1.95.0 cargo test --locked --manifest-path desktop/src-tauri/Cargo.toml --lib actual_independent_bundle_runs_through_native_trust_and_read_only_bridge -- --ignored
CARGO_BUILD_JOBS=2 rustup run 1.97.1 cargo test --locked --manifest-path desktop/src-tauri/Cargo.toml --lib actual_independent_bundle_runs_through_native_trust_and_read_only_bridge -- --ignored
} 2>&1 | tee build/resource-evidence/native-ops-bridge.txt
- name: Retain unqualified candidate evidence
if: success()
Expand Down
Loading
Loading