Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion .github/workflows/extropic-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,18 @@ jobs:
name: Prove Torx workload packaging
runs-on: ubuntu-24.04
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: runtimes/python/pyproject.toml

Expand Down
15 changes: 9 additions & 6 deletions docs/guides/extropic-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ placeholder compute function. It evaluates a two-wire circuit with an explicit
seed and returns a normalized JSON distribution through the same
registered-workload boundary.

Torx 0.0.1 requires Python 3.11 or newer. The proof extra pins the current Torx
and JAX compatibility line without changing Vyral's Python 3.10 baseline:
Torx 0.0.3 supports Python 3.10 or newer. The proof extra pins JAX 0.6.2 on
Python 3.10 and 3.11, the newest JAX line supporting those interpreters, and
JAX 0.11.x on Python 3.12 and newer. CI exercises both compatibility paths,
including Vyral's Python 3.10 baseline:

```bash
python3.12 -m venv .venv
python3.10 -m venv .venv
. .venv/bin/activate
python -m pip install --editable "runtimes/python[extropic-torx]"
python scripts/verify-python-extropic-torx.py
Expand Down Expand Up @@ -157,9 +159,10 @@ platform failures. Provider error detail is kept out of public results.

- Compatibility is pinned to `extro-sim >=0.5,<0.6`. The SDK and provider are
new enough that minor contract changes should be expected and reviewed.
- The optional local Torx proof pins `extro-torx ==0.0.1` and JAX 0.11.x. Torx
is not a Vyral runtime dependency and its Python 3.11 floor does not narrow
the base runtime's supported Python versions.
- The optional local Torx proof pins `extro-torx ==0.0.3`, JAX 0.6.2 below
Python 3.12, and JAX 0.11.x on Python 3.12 and newer. Torx is not a Vyral
runtime dependency, and the proof preserves the base runtime's Python 3.10
floor.
- Vyral serializes plain registered Python functions by value so the sandbox
does not need the host application's module. Imported packages must already
exist in the sandbox image. Callable objects and helpers imported from other
Expand Down
4 changes: 2 additions & 2 deletions runtimes/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ workloads should be self-contained plain Python functions; Vyral serializes
those functions by value, while third-party imports must exist in Extropic's
sandbox. A pinned `extropic-torx` extra and
[`examples/python/extropic_torx_workload.py`](../../examples/python/extropic_torx_workload.py)
provide a real, credit-free Torx packaging proof on Python 3.11 or newer. See the
provide a real, credit-free Torx packaging proof on Python 3.10 or newer. See the
[Extropic execution guide](../../docs/guides/extropic-execution.md) for the
complete lifecycle and current boundaries.

Expand All @@ -295,7 +295,7 @@ complete lifecycle and current boundaries.
| Talk to a running .NET or Python Vyral host | `vyral-client` |
| Run Vyral in-process without a server or .NET | `vyral` |
| Run a Python-hosted REST and MCP endpoint | `vyral[server]` |
| Rehearse the current Extropic/Torx proof locally | `vyral[extropic-torx]` (Python 3.11+) |
| Rehearse the current Extropic/Torx proof locally | `vyral[extropic-torx]` (Python 3.10+) |

The existing `vyral-client` distribution remains the supported lightweight
client for a running Vyral server. `vyral` is a separate runtime distribution
Expand Down
5 changes: 3 additions & 2 deletions runtimes/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ extropic = [
]
extropic-torx = [
"extro-sim>=0.5,<0.6",
"extro-torx==0.0.1",
"jax>=0.11,<0.12"
"extro-torx==0.0.3",
"jax==0.6.2; python_version < '3.12'",
"jax>=0.11,<0.12; python_version >= '3.12'"
]
dev = [
"build>=1.2,<2",
Expand Down
17 changes: 11 additions & 6 deletions scripts/verify-python-extropic-torx.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,25 @@ def _run_in_clean_process(encoded: bytes) -> dict[str, Any]:


def main() -> int:
if sys.version_info < (3, 11):
raise SystemExit("The Torx proof requires Python 3.11 or newer.")
if sys.version_info < (3, 10):
raise SystemExit("The Torx proof requires Python 3.10 or newer.")

import jax
import extro_sim

torx_version = importlib.metadata.version("extro-torx")
if torx_version != "0.0.1":
if torx_version != "0.0.3":
raise SystemExit(
"The Torx proof requires extro-torx 0.0.1, got "
"The Torx proof requires extro-torx 0.0.3, got "
f"{torx_version}."
)
if not jax.__version__.startswith("0.11."):
raise SystemExit(f"The Torx proof requires JAX 0.11.x, got {jax.__version__}.")
expected_jax_line = "0.6." if sys.version_info < (3, 12) else "0.11."
if not jax.__version__.startswith(expected_jax_line):
raise SystemExit(
"The Torx proof requires JAX "
f"{expected_jax_line}x on Python {sys.version_info.major}."
f"{sys.version_info.minor}, got {jax.__version__}."
)
if not extro_sim.__version__.startswith("0.5."):
raise SystemExit(
"The Torx proof requires extro-sim 0.5.x, got "
Expand Down
Loading